Hi all,
I am trying to make a connection string for the SQL SERVER..in all the sites i m getting
To connect to SQL Server running on a remote computer (via an IP address)
oConn.Open "Provider=sqloledb;" & _
"Network Library=DBMSSOCN;" & _
"Data Source=xxx.xxx.xxx.xxx,1433;" & _
"Initial Catalog=myDatabaseName;" & _
"User ID=myUsername;" & _
"Password=myPassword"
but i cant understand where should i write this in the QUERY WINDOW(it doesnt work)...where exactly should i write this connection string....
unlike in oracle there is NET MANAGER where i can just create a new SERVICE NAME....but here can someone PLEASEEEEE tell me
any help will be greatly APPRECIATED
Regards.
I am trying to make a connection string for the SQL SERVER..in all the sites i m getting
To connect to SQL Server running on a remote computer (via an IP address)
oConn.Open "Provider=sqloledb;" & _
"Network Library=DBMSSOCN;" & _
"Data Source=xxx.xxx.xxx.xxx,1433;" & _
"Initial Catalog=myDatabaseName;" & _
"User ID=myUsername;" & _
"Password=myPassword"
but i cant understand where should i write this in the QUERY WINDOW(it doesnt work)...where exactly should i write this connection string....
unlike in oracle there is NET MANAGER where i can just create a new SERVICE NAME....but here can someone PLEASEEEEE tell me
any help will be greatly APPRECIATED
Regards.

Sql server CONNECTION STRING...
dcumg
How can I use a connection string from the data flow in a script component
Can you show me an example
Thank you.
DaveMartinNassco
Justin C
Hi,
Yes. You can use the same connection string in your Script Task also.
Thanks & Regards,
Prakash Srinivasan.
Ty Y
Hi,
You basically need to copy the Connection string in any of your SQL Connections (which will be in the Connection Manager). Right Click your Script Task and Edit, and then in Edit Window, click Design Script to write your vb.net code.
In your Script Task, import the following namespaces
Imports
Microsoft.SqlServer.Dts.RuntimeImports
System.Data.SqlClientand then create objects for SQL Connection and write your Connection String like below
Dim
strConnSQL As StringstrConnSQL =
"Data Source=<Server Name>;User ID=<User ID>;Pwd=<Password>; Initial Catalog=<Database Name>;Persist Security Info=True;"Dim
Conn As SqlConnection = New SqlConnection(strConnSQL)and then you can write your VB.Net code as you want.
Hope this helps you out.
Thanks & Regards,
Prakash Srinivasan.
Volksie
If you are then you are you should be in the Business Intelligence Development Studio. Open up a package. When it opens up there is a space at the bottom called "Connection Managers". you create them in there.
-Jamie
B_Li
-Jamie
Hasie
Hi,
Can I use a connection string to sql server in a script component
Thanks in advance,
Reut.
jcrawfo2
thnks a lot for your reply...