Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    MS SQL Server


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





How To Enable CLR Integration In SQL Server Express And Create SQLCLR Project In VB 2005 Express?


Hi all,
 
In my SQL Server Express (that is installed in my Windows XP Pro PC), SQL Server 2005 Network Configuration has Protocols for SQLEXPRESS.  I tried to do "Enabling CLR Integration" in my SQL Server Express: (1) If I clicked on "Surface Area Configuration for Services and Connections", I got an error "An exception occurred in SMO while trying to manage a service, (Microsoft.SqlServer.Smo)   Additional information: Failed to retrieve data for this request. (Microsoft.SqlServer.SmoEnum)    The operation could not be completed. (WinMgmt).  (2) If I clicked on "Surface Area Configuration for Features, I got a different error "Computer localhost does not exist on the network, or the computer cannot be configured remotely. Verify that the remote computer has the required computer has the required Windows Management Instrumentation components and then try again. (SQLSAC)  Additional Information:  An exception occurred in SMO while trying to manage a service. (Microsoft.SqlServer.Smo).   Failed to retrieve data for this request. (Microsoft.SqlServer.SmoEnum)  The operation could not be completed. (WinMgmt).   Please help and tell me how I should do to get "Enabling CLR Integration" in my SQL Server Express done and how I can create SQLCLR Project in VB 2005 Express.
 
Thanks in advance,
Scott Chang 




View Complete Forum Thread with Replies

Related Forum Messages:
Problems Of Remote Connections For Creating A SQLCLR Project In SQL Server Express-ADO.NET 2.0-VB 2005 Express Via Network/LAN
Hi all,
 
In my office computer network system (LAN), my Windows XP Pro PC has SQL Server Express and VB 2005 Express installed and I was granted to have the Administrator priviledge to access SQL Server Express. I tried to create a SQLCLR project in my terminal PC. 
1) I tried to set up a remote connection to SQL Server Express in the following way: SQL Server EXpress => SQL Server Surface Area Configuration. In the Surface Area Configuration for Service and Connection - local, I clicked on Remote Connection of Database Engine, SQLEXPRESS and I had a "dot" on "Local and remote connections" and "Using TCP/IP only".  Then I clicked on "Apply" and "OK" buttons.  Then I went to restart my database engine in SQL Server Management. When I went to check SQL Server 2005 Surface Area Configuration, I saw the arrow is pointing to "Service", not to "Remote Connections"!!!???  Is it right/normal?  Please comment on this matter and tell me how I can have "Remote Connecton" on after I selected it.
 
2) After I restarted the database engine (I guess!!), I executed the following project code (copied from a book) in my VB 2005 Express:
 
//////////////--Form9.vb---/////////////////

mports System.Data.SqlClient

Imports System.Data

Public Class Form9

Dim cnn1 As New SqlConnection

Private Sub Form5_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

'Compute top-level project folder and use it as a prefix for

'the primary data file

Dim int1 As Integer = InStr(My.Application.Info.DirectoryPath, "bin")

Dim strPath As String = Microsoft.VisualBasic.Left(My.Application.Info.DirectoryPath, int1 - 1)

Dim pdbfph As String = strPath & "northwnd.mdf"

Dim cst As String = "Data Source=.sqlexpress;" & _

"Integrated Security=SSPI;" & _

"AttachDBFileName=" & pdbfph

cnn1.ConnectionString = cst

End Sub

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

'Create a command to create a table

Dim cmd1 As New SqlCommand

cmd1.CommandText = "CREATE TABLE FromExcel (" & _

"FirstName nvarchar(15), " & _

"LastName nvarchar(20), " & _

"PersonID int Not Null)"

cmd1.Connection = cnn1

'Invoke the command

Try

cnn1.Open()

cmd1.ExecuteNonQuery()

MessageBox.Show("Command succeeded.", "Outcome", _

MessageBoxButtons.OK, MessageBoxIcon.Information)

Catch ex As Exception

MessageBox.Show(ex.Message)

Finally

cnn1.Close()

End Try

End Sub

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click

'Create a command to drop a table

Dim cmd1 As New SqlCommand

cmd1.CommandText = "DROP TABLE FromExcel"

cmd1.Connection = cnn1

'Invoke the command

Try

cnn1.Open()

cmd1.ExecuteNonQuery()

MessageBox.Show("Command succeeded.", "Outcome", _

MessageBoxButtons.OK, MessageBoxIcon.Information)

Catch ex As Exception

MessageBox.Show(ex.Message)

Finally

cnn1.Close()

End Try

End Sub

Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click

 

'Declare FromExcel Data Table and RowForExcel DataRow

Dim FromExcel As New DataTable

Dim RowForExcel As DataRow

FromExcel.Columns.Add("FirstName", GetType(SqlTypes.SqlString))

FromExcel.Columns.Add("LastName", GetType(SqlTypes.SqlString))

FromExcel.Columns.Add("PersonID", GetType(SqlTypes.SqlInt32))

'Create TextFieldParser for CSV file from spreadsheet

Dim crd1 As Microsoft.VisualBasic.FileIO.TextFieldParser

Dim strPath As String = _

Microsoft.VisualBasic.Left( _

My.Application.Info.DirectoryPath, _

InStr(My.Application.Info.DirectoryPath, "bin") - 1)

crd1 = My.Computer.FileSystem.OpenTextFieldParser _

(My.Computer.FileSystem.CombinePath(strPath, "Book1.csv"))

crd1.TextFieldType = Microsoft.VisualBasic.FileIO.FieldType.Delimited

crd1.Delimiters = New String() {","}

'Loop through rows of CSV file and populate

'RowForExcel DataRow for adding to FromExcel

'Rows collection

Dim currentRow As String()

Do Until crd1.EndOfData

Try

currentRow = crd1.ReadFields()

Dim currentField As String

Dim int1 As Integer = 1

RowForExcel = FromExcel.NewRow

For Each currentField In currentRow

Select Case int1

Case 1

RowForExcel("FirstName") = currentField

Case 2

RowForExcel("LastName") = currentField

Case 3

RowForExcel("PersonID") = CInt(currentField)

End Select

int1 += 1

Next

int1 = 1

FromExcel.Rows.Add(RowForExcel)

RowForExcel = FromExcel.NewRow

Catch ex As Microsoft.VisualBasic.FileIO.MalformedLineException

MsgBox("Line " & ex.Message & _

"is not valid and will be skipped.")

End Try

Loop

'Invoke the WriteToServer method fo the sqc1 SqlBulkCopy

'object to populate FromExcel table in the database with

'the FromExcel DataTable in the project

Try

cnn1.Open()

Using sqc1 As SqlBulkCopy = New SqlBulkCopy(cnn1)

sqc1.DestinationTableName = "dbo.FromExcel"

sqc1.WriteToServer(FromExcel)

End Using

Catch ex As Exception

MessageBox.Show(ex.Message)

Finally

cnn1.Close()

End Try

'Read the FromExcel table and display results in

'a message box

Dim strQuery As String = "SELECT * " & _

"FROM dbo.FromExcel "

Dim str1 As String = ""

Dim cmd1 As New SqlCommand(strQuery, cnn1)

cnn1.Open()

Dim rdr1 As SqlDataReader

rdr1 = cmd1.ExecuteReader()

Try

While rdr1.Read()

str1 += rdr1.GetString(0) & ", " & _

rdr1.GetString(1) & ", " & _

rdr1.GetSqlInt32(2).ToString & ControlChars.CrLf

End While

Finally

rdr1.Close()

cnn1.Close()

End Try

MessageBox.Show(str1, "FromExcel")

End Sub

End Class
//////////////////////////////////////////////////////////////////////////////
I got the following error messages:  
       SecurityException was unhandled  
       Request for the permission of type 'System. Security. Permissions.FileIOPermission,mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'failed that is pointing to the code statement "Dim int1 As Integer = InStr (My.Application.Info.DirectoryPath, "bin")."
      Troubleshooting tips:
              Store application data in isolated storage.
               When deploying an Office solution, check to make sure you have fulfilled all necessary requirments.
               Use a certificate to obtain the required permission(s).
               If an assembly implementing the custom security references other assemblies, add the referenced assemblies to the full trust assembly list.
               Get general help for the exception.
 
I am a new Microsoft VS.NET Express user to do the SQL Server 2005 Express and VB 2005 Express programming by using the example of a tutorial book.  Please help and tell me what is wrong in my SQLCLR sep-up and project coding and how to correct the problems.
 
Many Thanks in advance,
Scott Chang    
     
 

View Replies !
Cannot Create New Project In SQL Server Management Studio Express 2005
I installed SQL Server Express 2005 and was able to install the sample databases. I have been working through the on-line tutorial. In Lesson 4 of the tutorial it instructs you to select File, New, Project. However, when I select File, New there is no Project choice listed. Have I failed to install something correctly?
 
Thanks for any assistance.

View Replies !
Simple Examples Of SQLCLR By Connecting To SQL Express User Instances In Management Studio Via VB 2005 Express
Hi all,
I want to do SQLCLR by Connecting to SQL Express User Instances in Management Studio via VB 2005 Express and I have read the following articles and books:
(i) Connecting to SQL Express User Instances in Management Studio in http://blogs.msdn.com/sqlexpress/archive/2006/11/22/connecting-to-sql-express-user-insta...
(ii) Managing SQL Server Express with SQL Server 2005 Management Studio Express Edition in http://www.microsoft.com/technet/sql/2005/mgsqlexpwssmse.mspx
(iii) Chapter 16 - Going Beyand Transact-SQL: Using the SQL Common Language Rutime (SQLCLR) in Microsoft SQL Server 2005 Express Edition for Dummies
(iv) Chapter 21 - Working with the Common Language Runtime in Microsft SQL Server 2005 Programming for Dummies
(v) Chapter 4 - Introduction to Common Language Runtime (CLR) Integration in Programming SQL Server 2005 by Bill Hamilton.
I want to create an SQLCLR project "HelloWorld" by Connecting to SQL Express User Instances in Management Studio via VB 2005 Express. But I am still not sure how to get it started, because I do not understand the following things:
(1) Pipe Name for a User Instance, (2) Enabling (or Disabling) the CLR by using Transact-SQL, (3)  Creating a Transact-SQL script, (4) Creating an Assembly, (5) Creating a backup device, etc. I need to see some simple examples of SQLCLR by Connecting to SQL Express User Instances in Management Studio via VB 2005 Express.  Please help and tell me where in the websites I can find them.
 
Thanks in advance,
Scott Chang 

View Replies !
Deployment The Project Of VB.net Express And SQL 2005 Express
 I have problem after deployig the setup project. when I install it on other computer it show error that an error has occur whil establishing connection to server. plz tell me how can I deploye a project and how can I handle this problem..

View Replies !
C# Express Vs CLR Integration With SQL Server 2005
Hi,

I wonder if it is possible to use the Express edition of C# to write CLR procedures?

 

Regards

/Mattias

View Replies !
How To Use Xcopy && User Instance To Copy 3 Dbo Tables From The Database Of SQL Server Management Studio Express To The App_Data Folder Of Website Of VWD Express Project?
Hi all,
I have read/studied (i) Working with Databases in Visual Web Developer 2005 Express in http://quickstarts.asp.net/QuickStartv20/aspnet/doc/data/vwd.aspx, (ii) Xcopy Deployment (SQL Server Express) in http://msdn2.microsoft.com/en-us/library/ms165716.aspx, (iii) User Instances for Non-Administrators in http://msdn2.microsoft.com/en-us/library/ms143684.aspx, and (iv) Embedding SQL Server Server Express in Applications in http://msdn2.microsoft.com/en-us/library/ms165660.aspx.  I do not understand the concepts and procedures to do Xcopy and User Instances for non-administrators completely-I do not know how to connect to databases and create database diagrams or schemas using the Database Explorer.  I have a stand-alone Windows XP Pro PC. I have created a ChemDatabase with 3 dbo tables in the SQL Server Management Studio of my SQL Server Express and a website of my VWD Express application with an App_Data folder.  I am not able to proceed to use Xcopy and user instance to bring the 3 dbo tables of ChemDatabase to my App_Data folder. Please help and give me some detailed procedures/instructions to bring the 3 dbo tables of ChemDatabase (or ChemDatabase itself) from the SQL Server Management Studio Express to the App_Data folder of the website of my VWD Express project? 
Thanks in advance,
Scott Chang 
 

View Replies !
MSDE 2000 Or SQL Server 2005 Express (Beta) For New Project?
Hello guys! I have to develop a new web based project. It's a web
portal for events. At the moment it's runnung on an Access database.
The new version should be running on a SQL server - the desicion is:
MSDE 2000 or SQL Server 2005 Express (Beta). What do you recommend? The
webpages are developed under .NET 1.1.

View Replies !
SQL Server 2005 Express And MS Project 2003 Server
Does anyone know how to install MS Project 2003 along with SQL Express 2005.

View Replies !
VS 2005 Error 'Object Reference Not Set To An Instance Of An Object' With Integration Services Project Create Failure
 

Just installed VS 2005 & SQLServer 2005 clients on my workstation.  When trying to create a new Integration Services Project and start work in the designer receive the MICROSOFT VISUAL STUDIO 'Object reference not set to an instance of an object.' dialog box with message "Creating project 'Integration Services project1'...project creation failed."
 
Previously I had SQLServer 2000 client with the little VS tool that came with it installed.  Uninstalled these prior to installing the 2005 tools (VS and SQLServer).
 
I'm not finding any information on corrective action for this error.
 
Any one have this problem and found the solution?
 
Thanks,
CLC
 
 

View Replies !
Using The 2005 Express Edition For A Very Big Project
Will the 2005 Express Edition support big websites or do I have to upgrade to another edition?
The website I'm currently building is an advertise site, and lets say it will at some point be up to 1000-5000 visitors (or even more) online on the website, searching for ads or adding ads.Can the Express Edition handle this? Or should i use MySQL instead?

View Replies !
Integration Service Express/2005
I finally bit the bullet and uninstalled all of Sql Server 2005 and installed Sql Server 2005 Express both Advanced and the Toolkit. I can get in and see everything locally and my production Great Plains server just fine through Management console. The one thing I can't do is open an integration package to process our credit cards.
 
It's a pretty simple integration, but when I go to open it in SQL Server Business Intelligence Development Studio, the only thing it shows installed was Reporting services, not Integration services. When I try to open the project it gives me:
"The application for project 'c:pcard...' is not installed. Make sure the application for the project type(.dtproj) is installed."
I had a problem earlier with the gui not coming up but was resolved when I applied SS2005 SVP 2. Some items wasn't on the same version. I re-applied svp 2 after I installed SS express and still got the above. If I try and 'add' Integration Services, either thru Express or just regular ss2005, it says it's already installed.
 
Do I have to modify the registry so that it comes up on Business Intelligence Dev Studio? I can't run the integration if I can't open the project.

View Replies !
Sql Server 2005 Project Integration Creation Failed
Hi,
 
When I attempt to create a new Integrations Project I receive words to the effect 'project integration  creation failed'.
 
Under Vista, I have un-installed SQL Server 2005 and reapplied SP2 and Vista fix.
 
Same results.
 
Any suggestions?

View Replies !
Upgrade From 2000 MSDE To 2005 Express - Enable TCP/IP By Default && Current Version Of SQL Running?
i am working on upgrading the clients and server computers from 2000 MSDE to 2005 SQL Express Adv. Plan to upgrade using the template.ini.

i can find the version of sql server running on th server by @@version but how do i find the version of client connctivity components the computer has installed in order to ugrade?

1. somehow i need to know whether to upgrade a client computer CONNECTIVITY COMPONENTS from 2000 to 2005?

2. is there a way to enable tcp/ip in installation script of SQL Express?


THANKS

View Replies !
Enable Production SQL Server Express For SQLCacheDependency?
Q1: Can I just open these protocols I need (see web links below) and then close them down again after SQLCacheDependency has been enabled? Note: The website (asp.net 2.0/SQL server Express) operates OK right now with asp.net - but it does not have SQLCacheDependency enabled.
Problem: When I try to do this I keep on getting this error message:
"An error has occurred when establishing a connection to the server.  When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections."
None of these 3 commands have worked (all give the same message above):
 aspnet_regsql.exe -U user1 -P pwd1 -S server1/SQLEXPRESS -d myDBName -ed aspnet_regsql.exe -E -S server1/SQLEXPRESS -d myDBName -ed aspnet_regsql.exe -E -S .SqlExpress -d myDBName  -ed
I am trying to run these commands via a MSTSC connection. Q2: Is that (terminal server) the problem (the "remote connection") complained of above ?
This is the command that worked on my local dev machine:
 aspnet_regsql.exe -E -S .SqlExpress -d myDBName -ed
Q3: Must I really go through the procedure "How to: Configure Express to accept remote connections" at:
http://support.microsoft.com/default.aspx?scid=kb;EN-US;914277http://blogs.msdn.com/sqlexpress/archive/2005/05/05/415084.aspx
I don't really want to have SQL server accepting any connections as the last time it was listening on these ports we had so many attacks being made that it was filling up the logs!
What I can't understand is that every night the database is backed up with the following command line code (operating as a Scheduled Task):
  sqlcmd -s server1/SQLEXPRESS -i MW4BAK.SQL -E
Q4: So if the server is happy receiving commands from 'sqlcmd.exe' why does it have such problems with 'aspnet_regsql.exe'
Q5: If I grouped those statements I need to setup SQLCacheDependency under a Scheduled Task would they work (as there would presumably be no remote connection then) or is it something in the nature of the connection established which allows sqlcmd.exe to work but stops aspnet_regsql.exe?

View Replies !
Create A Publication In SQL Server 2005 Express
Hi,

is it possible to create a publication with SQL Server 2005 Express. I can´t seem to find it in Microsoft SQL Server Management Studio Express.

Do i have to install the full version? :(
Isn´t there any other option?

Thanks
SP

View Replies !
SQL Server Express 2005 - Create Tables On The Fly!!!
 

Hi, i'm from portugal and i'm given my first steps in SQL.
I worked with access database, but i want to trade to SQL database.
 
My problem is, that i want to connect my SQL Server to a unix server in Germany, i have created the ODBC connection and i need to create tables that will extrat info from that german server.
 
In my recarch, i hearth that i have to create table on de fly or tables that use ODBC connectrions... "DSN=XXXX"
 
Can anyone tell me more about this or indicate were can i obtain info about this?!?
 
Best Regards,
Firecash
 
PS: Sorry my english..

View Replies !
Can't Add A SQL Database (2005 Express Edition) To A C# Project Over RDP
Good Afternoon.

I installed C# with SQL Server 2005 Express Edition. Everything works fine on the account I installed it on, on the local machine. However.

1) I can't connect using RDP to that same account and use SQL. It times out.
2) Other users on that computer cannot make user of SQL. Also times out.

I couldn't find documentation on these issues.

Thanks,

Philski

View Replies !
How Do I Create A Integration Services Project Programatically???
hi everyone,
 
My vb .net app creates programatically a package. I mean, you can provide name, description, number of OLEDB/ADO connections, variables and so on, where it's stored, from a WinForm.
 
Up to the moment, process only creates boxes separately wihtout links.
 
My concern is after this successful cycle I only can open that DTSX and see its components but executing button is disabled (only possible with DTEXECUI.exe) from BIDS.
 
Only when I create a project (DTSPROJ) and then I put that same .DTSX inside I am be able to execute it.
 
Well, up to here all of this is very good. Things were created this way for some reason.
 
My question now is how do I from my application in order to create dtsproj and dtsproj.user (I don't know how many files are needed) and be able to create a package and its "father project". My idea is that the user can choose if create a standalone DTSX or a full project.
 
Let me know if you need further details.
 
TIA,

View Replies !
Unable To Create Integration Services Project
Hi,

I've installed with success Visual Studio 2005 team edition for software developers and SQL SQL Server standard edition, but when I've created a new IS project and click on "No Data flow tasks have beed added to this package. click here to add a new DataFlow task"

I receive the following message :

Registration information about the Data Flow task could not be retrieved.
Confirm that this task is installed properly on the computer.

Could not enumerate the registered tasks. (Microsoft.DataTransformationServices.Design)

Does someone experience this before ? is there any work around  ?

Thank you for your help

 

View Replies !
Create New Database In SQL Server 2005 Express Edition
Hello,I use the SQL Server 2005 Express Edition. I want to create a new database, but I cant find where and how.Can anyone provide me with starter's tips and/or a good tutorial?
Thanks!

View Replies !
SQL Server 2005 Express, Generating Create Scripts
Anyone know an easy way to generate the SQL Scripts to gererate the
tables/sp's/triggers/indexes/fk's, ect? I know Sql Server 2000 lets you
generate the db script, but I don't know how to do this with 2005

View Replies !
Create Database In SQL Server 2005 And Attaching It In SQL Express
Hi,

I've created a database in sql server 2005, but now I need to detach this database and attach it in sql express.  Is this possible?  I keep getting an error that my database is readonly.  Any help would be greatly appreciated.

 

 

thanks in advance.

View Replies !
Not Able To Create NEW LOGIN In SQL Server 2005 Express Edition
I have installed on my PC Visual Basic 2005 Express Edition which installed SQL Server 2005 Express Edition. In addition I downloaded and installed SQL Server Management Studio Express(SSME).

Now using SSME I can connect into SQL server express with the default login that was created by the installation. I want to create a new login:

Right click on Security > New > Login

I filled in all the details. However, when I click OK I get the following error:

Create failed for Login 'Mauriceewlogin'. Windows NT user or group 'Mauriceewlogin' not found. Check the name again.

 

Please, help. I am getting fraustrated with this error.

Thanks.

- Terhemba

 

View Replies !
How To Create A Login Userid And Password For Ms SQL Server 2005 Express?
My PC is Window XP Pro and I'm using Microsoft SQL Server 2005 Express and Microsoft SQL Server Management Studio Express.
My question is how to create a login userid and password under "SQL Server Authentication"? (as shown in http://www.findingsteve.net/print_screen.jpg)
Any tutorial about this I can read?

View Replies !
How To Apply SQL Server 2005 Express SP1 To The Version Of SQL Server 2005 Express Which Installs With Visual Studio 2005?
When I installed VS 2005, it installed the default version of SQL Server 2005 Express that ships with Visual Studio 2005 installer media.

How can apply SQL Server 2005 Express SP1 to update this existing instance?

Currently, if I run this query:

SELECT @@version

I get the following:

Microsoft SQL Server 2005 - 9.00.1399.06 (Intel X86)   Oct 14 2005 00:33:37   Copyright (c) 1988-2005 Microsoft Corporation  Express Edition on Windows NT 5.1 (Build 2600: Service Pack 2)

After applying SP1, I should get 9.00.2047.00.


Should I just go to this link and download & install the SQL Server 2005 Express Edition SP1:

http://msdn.microsoft.com/vstudio/express/sql/download/


Thank you,

Bashman

View Replies !
Edited Data Won't Propagate Back To The Database (VB 2005 Express && SQL Server 2005 Express)
 

Hi,

I'm trying to learn some VB programming with the VB 2005 Express Absolute Beginner Series video tutorials (which I think is great) and have come across a problem that I can't solve.

When I follow the instructions in Lesson 9 (Databinding Data to User Interface Controls) my application will display the data from the database correctly and I can edit it (and as long as the debugger is running the data remains changed). However, the changes won't propagate back to the database. I don't get any error messages but after I edit the data, save (with the save button on the BindingNavigator toolbar), and end debugging the data in my database remains unchanged. When I use a MessageBox to show how many rows where edited/updated in the

Me.myTableTableAdapter.Update(Me.myDatabaseDataSet.myTable)

I get the correct number back. I'm sure the problem is not due to coding errors since I've also tried running the accompanying Lesson 9 project file that can be downloaded from MSDN and the problem persists.

I'm using Windows XP SP2, SQL Server 2005 Express Edition and VB 2005 Express Edition. I've tried installing SQL Server 2005 Express with a number of different settings, including default settings, but it doesn't make any difference.

Would greatly appreciate any feedback on this as I'm keen to resolve this problem so I can get on with the next tutorial lesson.

Thanks,
Ieyasu

 

View Replies !
Can I Create Database Using Backup File In SQl Server 2005 Express Edition
hi
       i have a database file backup which is having no extension (eg saims) . Can i create a database using this backup in sql server expression edition.
 Or else is there any way to get the .mdf file from sql server 2005 full edition??????????????
Thanx in advance

View Replies !
Unattended Re-install Of SQL Server 2005 Express Fails To Re-create Database!
Hi,

I have a script that performs an unattended installation of SQL Server and works fine. 

However, if I un-install via the control panel all the files are removed apart from the databases that are created by me when SQl server was installed.  This is good and ensures data is not deleted. 

The files left over are in the following directory:
    C:Program FilesMicrosoft SQL ServerMSSQL.1MSSQLData
and contains:
    MyDatabase.mdf
    MyDatabase_log.LDF

The problem I have is after performing the re-installtion of SQL server (unattended) I am unable to create a new database with the same name (in this instance called "myDatabase").

The actual files are physically there so this is the reason a new database with the same name cannot be creacted.

Again this is ok again because it ensures I cannot overwrite existing data.  However I am unable to re-attach this database to SQl server so I can continue to use it!

The question is:

How do I make this database usable again after an unattended install?  Is there a parameter I am missing?

Below are the commands I use that are passed to the installation of SQL Server as command line parameters:

#define SQL_SILENT                    "-q /passive /norebootchk /qn reboot=ReallySuppress"
#define SQL_USERNAME             "username=MyUserName"
#define SQL_COMPANYNAME      "companyname=MyCompanyName"
#define SQL_ADDLOCAL               "addlocal=ALL"
#define SQL_DISABLENETWORKPROTOCOLS   "disablenetworkprotocols=0"
#define SQL_INSTANCENAME       "instancename=MSSQLSERVER"
#define SQL_SQLAUTOSTART       "SQLAUTOSTART=1"
#define SQL_SECURITYMODE       "SECURITYMODE=SQL"
#define SQL_SAPWD                     "SAPWD=#Password#"
#define SQL_SAVESYSDB             "1"
#define SQL_USESYSDB               ""
#define SQL_INSTALLSQLDIR         ""
#define SQL_INSTALLDATADIR       ""

#define SQL_PARAMETERS    SQL_SILENT + " " + SQL_USERNAME + " " + SQL_COMPANYNAME + " " + SQL_ADDLOCAL + " " + SQL_DISABLENETWORKPROTOCOLS + " " + SQL_INSTANCENAME + " " + SQL_USESYSDB + " " + SQL_INSTALLSQLDIR + " " + SQL_INSTALLDATADIR + " " + SQL_SAVESYSDB + " " + SQL_SQLAUTOSTART + " " + SQL_SECURITYMODE + " " + SQL_SAPWD


The last four commands I have played around with but for some reason SQL Server service will not start when these are used! (This is a different issue though!).


Any advice would be gratefully accepted.

Thanks

Paul

View Replies !
How Can I Onnect Visual Basic Express 2005 To A Remote SQL Server Express 2005?
HiIm trying to connect Visual Basic Express 2005 to a remote SQL Server Express 2005. I cant find how i can do that in VB.net Express.In Web developer there are no problem to connect to a remote SQL server but i cant find it in VB.net Express. The XP with the SQL server that i want to connect to is on the local network. Greatful for help!

View Replies !
Visual Basic 2005 Express And SQL Server 2005 Express - Display Image
Hi Guys,
I created a Product database table using Visual Basic 2005 Express and SQL Server 2005 Express. I have just added a new column [Picture] to the database table, which of course, should store an image or picture of a product. I am writing to kindly ask you guys for help .


i) How do I include image files into this column [Picture]?
ii) How do I get this image to display on Visual Basic 2005 Express form, so that when a product is selected the product image is displayed accordingly?


Your help much appreciated. Thanks.
 
Paul

View Replies !
How To Create A Copy Of SQL Server 2000 Database In SQL Server 2005 Express?
I have a database called 'DB1' in SQL Server 2000. I want to create the same database in SQL Server 2005 Express including the original data in tables.
How would I do that? I cannot find any option to do this upgrade in SQL Server Management Studio.

View Replies !
I Do Not Have The Option To Create An Integration Service Project In Business Management Studio
Hi,

 

I have installed the advanced toolkit for Microsoft Sql server 2005, with the SQL server Business Intelligence Development Studio but I don't have the option the create a Integration Service project. I only have the Report Server project option available.

 

Do I have to download something else to get it?

 

I do not have a SQL server instance installed on the machine I installed the toolkit on.

 

Thank you

View Replies !
Upgrading From Sql Server 2005 Express Edition To Sql Server 2005 Express With Advanced Services
If i have been using sql server 2005 express for developing my application and i decide to upgrade to sql server 2005 express with advanced services while still working on the same application, what will happen to my  application's database. Can i be able to continue with my work with out any major regrets.

View Replies !
How To Configure SQL Server Management Studio Express To Allow Doing Non-User-Instance/ADO.NET 2.0 From VB 2005 Express?
Hi all,
 
For the first time, I want to set up the configuration of my SQL Server Management Studio Express (SSMSE) to allow me in doing the non-User-Instance/ADO.NET 2.0 programming from my VB 2005 Express. The SSMSE and VB 2005 Express are in my Windows XP Pro PC that is part of our NT 4 LAN System in our office.  I read the article "How to configure SQL Server 2005 to allow remotre connections" in http://support.microsoft.com/kb/914277/  about (i) "Enable remote connections for SQL Server 2005 Express", (ii) Enable the SQL Server Browser service", (iii) Create exception in Windows Firewall, and (iv) Create an exception for the SQL Server Browser service in Windows Firewall. I entered the SQL Server Surface Area Configuration and I could not decide what options I should take for doing the non-User-Instance/ADO.NET 2.0 programming from my VB 2005 Express.  I have the following questions on the page of "Minimize SQL Server 2005 Surface Area":
(1)  I saw "Configure Surface Area for localhost [change computer]".   I clicked on  [change computer] and I saw the
      following:   Select Computer
                      The Surface Area Configuration of this surface area of this computer or a remote computer.
                      Specify a computer to configure:  O Local computer
                                                                       O Remote computer
                       Should I choose the "Local computer" or the "Remote computer" option?
(2) Below the "Configure Surface Area for localhost [change computer]", 
    I clicked on "Surface Area Configuration for Service and Connections",  Select a component and then configure its services and connections:  |-|  SQLEXPRESS
                                          |-| Database Engine
                                                    Service
                                I picked =>   Remote Connection
       On the right-hand side, there are:     O Local connections only
                                                            O Local and remorte connections
                                                                   O Using TCP/IP
                                                                   O Using named pipes only
                                                                   O Using both TCP/IP and named pipes
                        Should I choose   O Local and remorte connections and O Using named pipes only?
 
Please help and tell me what options I should choose in (1) and (2).
 
Thanks in advance,
Scott Chang                                          

View Replies !
How To Get A Remote Connection To SQL Server Express From VB 2005 Express In A Network PC That Is Granted For Administrator Use
Hi all,
 
I have SQL Server Express and VB 2005 Express installed in a Microsoft Windows XP Pro PC that is a terminal PC in our office Network.  My Network Administrator has granted my terminal PC for Administrator Use.  I tried to do the  ADO.NET 2.0-VB 2005 programming in my terminal PC and I could not get a remote connection in the Window Form Application via Window Authorization. I do not know how to make this kind of remote connection in my Network. Please help and advise.
 
Thanks in advance,
Scott Chang  

View Replies !
I Can No Longer Connect To My SQL Server Express 2005 From Manager Studio Express
Everything was working fine.  I have been able to connect using windows authentication.  Then, I went into the ODBC manager to add a data source and it failed to connect so I went back into the Server management studio to modify users.  After doing this I now get an error when I try to conenct the management studio to the SQL server.

I wasn't modifying the login for my windows account that I normally use, I was modifying a different one, however I now get the message "An error has occured while establishing a connection to the SQL server.  This kind of problem can ocure because the default behavior of the server does not support all connection methods" blah blah.

Does anyone know how I can attach to the server?  Or, do I need to somehow remove the server and create a new one?  How would I do that?

Thanks in advance for any input.

View Replies !
Restoring A Sql 2000 Db In Sql 2005 Express Db With Sql Server Management Studio Express
As I said in the subject I've a problem trying to restore a backup of a previous db created in sql 2000 server

When I try to do it I recive the following message:

____________________________________________________________________________________
System.Data.SqlClient.SqlError: Il set di backup include il backup di un database diverso dal database 'musica2007' esistente. (Microsoft.SqlServer.Express.Smo)

------------------------------
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=9.00.2047.00&LinkId=20476

------------------------------
Program Location:

   in Microsoft.SqlServer.Management.Smo.ExecutionManager.ExecuteNonQueryWithMessage(StringCollection queries, ServerMessageEventHandler dbccMessageHandler, Boolean errorsAsMessages)
   in Microsoft.SqlServer.Management.Smo.BackupRestoreBase.ExecuteSql(Server server, StringCollection queries)
   in Microsoft.SqlServer.Management.Smo.Restore.SqlRestore(Server srv)
____________________________________________________________________________________

What should I do? What's the probem? I've already tried to look for the solution in other messages but I didn't find anything..... Thanks for help,,, by Luke

View Replies !
How To Install SQL Server 2005 Express Downloaded With VS 2008 Express
Downloading and installing VS 2008 Express also created a Miscrosoft SQL Server folder.  How do I install the SQL Server 2005 Express?The following is what I found from the HELP menu bar of the VS 2008 Express.  Where can I find the sqlexpr.exe?
TIA,Jeffrey 
 
To install SQL Server Express To begin installation, double-click sqlexpr.exe. Note: SQL Server Express is available as a self-extracting executable file (sqlexpr.exe) from both the Visual Studio 2005 CD and the SQL Server Express Web site. SQLEXPR.EXE installs on x86-based computers and to the 32-bit subsystem (WOW64). For more information, see Hardware and Software Requirements (SQL Server Express)

View Replies !
Can't Connect To SQL 2005 Express With SQL Server Management Studio Express
I've seen the following error posted when people try to connect to their server via their applications but didn't see anyone having problems when trying to connect with SQL Server Management Studio Express. Am I missing something here? This is the error:<<An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)(Microsoft SQL Server, Error: 2)>>The server is not remote so I don't see why I need to enable remote connection. I am also using the default connection settings.

View Replies !
MS SQL Server Management Studio Express (2005) Express Edition
Hello,

I am trying to "import" a .dbf into SQL Server Compact Edition, but I cannot find a way to do so. Can someone tell me how this is done?

View Replies !
Error While Trying To Install SQL Server Express 2005 Express Edition
Hi,

I'm getting an error while trying to install SQL Server Express 2005 Express Edition. I'm attaching the log of the installation process here. Please throw some light on the same.


Error 29503. The SQL Server service failed to start. For more information, see the SQL Server Books Online topics, "How to: View SQL Server 2005 Setup Log Files" and "Starting SQL Server Manually."
The error is  (3) The system cannot find the path specified.

.

<Func Name='GetCAContext'>

<EndFunc Name='GetCAContext' Return='T' GetLastError='203'>

Doing Action: Do_sqlShutDownRANUInstance

PerfTime Start: Do_sqlShutDownRANUInstance : Sat Mar 08 21:39:12 2008

<Func Name='Do_sqlShutDownRANUInstance'>

Service SQLEXPRESS with parameters '' is being started at Sat Mar 08 21:39:12 2008

Unable to start service (3)

        Error Code: 0x80070003 (3)
Windows Error Text: The system cannot find the path specified.

  Source File Name: sqlsetuplibservice.cpp
Compiler Timestamp: Wed Jun 14 16:29:04 2006
     Function Name: sqls:ervice:tart
Source Line Number: 316





---- Context -----------------------------------------------




Setting status of unmanaged components and removing unmanaged resources





Error Code: 3

MSI (s) (D0!64) [21:39:17:257]: Product: Microsoft SQL Server 2005 -- Error 29503. The SQL Server service failed to start. For more information, see the SQL Server Books Online topics, "How to: View SQL Server 2005 Setup Log Files" and "Starting SQL Server Manually."
The error is  (3) The system cannot find the path specified.

.



Error 29503. The SQL Server service failed to start. For more information, see the SQL Server Books Online topics, "How to: View SQL Server 2005 Setup Log Files" and "Starting SQL Server Manually."
The error is  (3) The system cannot find the path specified.

.

View Replies !
Unable To Re-install SQL Server 2005 Express And Also SQL Express Toolkit
Hi,
 

I had some issues on my server and had to uninstall .Net Framework 2.0, SQL Server 2005 Express, and SQL Express Toolkit. I installed SQL Server 2005 Express and it seemed to be ok.
 

Then my problems all started when I tried to install SQL Express Toolkit because I needed to install DTS Wizard again, and it errors out and wouldn't let me install it. So I uninstalled everything that's listed above again.
 

I then tried to install SQL Server 2005 Express again, and on the second from last screen, while its listing all the components and configuring them, I get the following error as it's configuring the last component... which was the SQL Server Database Services.
 

TITLE: Microsoft SQL Server 2005 Setup
-----------------------------------------------------------
The SQL Server service failed to start. For more information, see the SQL Server Books Online topics, "How to: View SQL Server 2005 Setup Log Files" and "Starting SQL Server Manually."
 
 
I tried to re-install the SQL Server Express another 7 times wth no luck.
 

If anyone can point me in the right direction I'd really appreciate it.
 

Thanks,
Bill

View Replies !
Cannot Connect To SQL Server 2005 Express With Management Studio Express
On my home machine without permanent network connections enabled, I cannot get the Management Studio connect to the database server.  Always get this error:

 

Cannot connect ot MPLIAMSQLEXPRESS

Additional Information:
 
An error has occurred while establishing a connection to the server.  When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, erro: 26 - Error Locating Server/Instance Specified)(Microsoft SQL Server)

 

I have used the SQL Surface Area Configuration Tool to reset the defaults to allow remote connections, stopped and restarted the server, but still get the same message.

Please help.

View Replies !
Component SQL Server 2005 Express Edition Has Failed To Install - Cannot Create A Top-level Child Window..
Hi All,

I'm having an windows app which has Sql Server 2005 Express edition has one of its pre-requisites. When i deployed this app to one of the servers and when my clients tried to download in more than one system, strangely, in one system they got the following error.


Component SQL Server 2005 Express Edition has failed to install with the following error message:"Cannot create a top-level child window."The following components failed to install:- SQL Server 2005 Express Edition

Would be great if you could throw some light on this issue. Its quite urgent for me to resolve this as this is from the Client side live environment.

Thanks

View Replies !
Northwind Database In SQL Server Management Studio Express Is Lost Or Used/processed By VB 2005 Express:How To Locate/return It
Hi all,
 
In the last one and half years, I used the Northwind Database in SQL Server Management Studio Express (SSMSE) to learn the programming of SqlConnections, Data sources, Database Exploere, ADO.NET 2.0, etc. via VB 2005 Express. 

The Northwind Database in my SSMSE got lost very often, but I was not aware of it.  How can I know where the Northwind Database is used or processed by my VB 2005 Express projects that were the examples of some tutorial books or my trial projects? How can I release the Northwind Database back to my SSMSE from the VB 2005 Express projects?  Please help and advise.
 
Thanks in advance,
Scott Chang

View Replies !
How To Set Up SQL Server 2005 Express After Install VS 2008 Express
I installed VS 2008 Express with an option to download SQL Server 2005 Express.  I noticed there is a '90' folder under my Microsoft SQL Server folder.  I assumed this the folder for SQL Server 2005 Express. 
How do I set up my SQL Server2005 Express, so that I can use some sample databases for my VS 2008 Express?  Any difference for SQL Server 2005 Express between VS 2008 Expressdownload and SQL Server 2005 Express download?
TIA,Jeffrey 

View Replies !
Using SQL Server 2005 Express In Visual Web Developer Express
I have installed Visual Web Developer Express and its companion SQL Server 2005 Express in my Windows XP Professional box.

Now I want to create a database using Visual Web Developer.              I opened the Database Explorer and right clicked on Data Connections icon but what I am seeing is an inactive "Create new database" command.

How can I make it active ? How to create a database using my Visual Web Developer?

 

View Replies !
Does SQL Server 2005 Express Support Web/Internet Replication To Other SQL Server Express Clients?
HI

Q1: Does Sql Server 2005 Express support Web/Internet to other SQL Server 2005 Express Clients or does it have to Synch across the internet to a fully installed setup SQL Server 2005 with IIS?

Q2:  Does SQL Server 2005 Express support Direct Replication between other SQL Server 2005 Express clients?

Regards

 

View Replies !
SQL Server 2005 Express Edition With SQL Server Management Studio Express (SSMSE)
Hi all,

I have installed SQL server 2005 express edition with SQL server Management studio express (SSMSE).

I have installed also SQLce and I would know how I can manage sql compact edition databases (.ldf) with sql SSMSE, if it is possible!

I would be grateful if you could explain it trought a detailed guide (I am a beginner user of sql server tools) or trought a link to useful sites.

I'm Looking forward for your reply and still trying...

Alessandro

View Replies !
Access Project 2002 Compatibility With SQL Server Express
Hi,
When using an Access Project 2002 connected with SQL Server Express in OLE DB it's impossible to work in creation mode. A message explains that this Access version is not compatible with this SQL version.
Is there a service pack ?

View Replies !
Open A New Project Using SQL Server Management Studio Express
Dear Friends

I am unable to open e new project using SQL Server management Studio Express. On the File menu it displays only "Query with current connection" and "Data base Engine Query". Please help me on thi Do I have to Install SQL Server management Studio instead of using express version. Cant I use SQL Server and SQL server management studio for deploy to make a small database for my a wharehouse. Please help me

 

Amila

View Replies !
Visual Basic .NET 2005 Express && Sql Server 2005 Express Remote Server
Hi,
 I want to make a component library in Visual Basic.NET and connect to a remote Sql Server. When I create a new DataSet with the wizard, I can only connect to a .mdf file, but not to a Sql Server. With Visual Web Developer I can connect to a Sql server. What is the difference between these enviroments ? How can I do the same with Visual Basic.NET ?
 Thanks in advance.

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved