Tuesday, March 27, 2012
Connecting to SQL Server 2005
Server 2000. Using SQL Server 2005 interface, how could I connect to a
named instance of a SQL Server 2005 database? As I try, it keeps connecting
me to the SQL Server 2000 db. Is this something you set up in CLient tools?
Please let me know, I connect to the SQL Server using a temp dns name.
Thanks,
Here is what I what to achieve:
category1
content2
content3
content4
content5
content6Please disregard this text. Came from an old message.
"Here is what I what to achieve:
category1
content2
content3
content4
content5
content6"
<programmingcodeATjards.com> wrote in message
news:e83mL7OrGHA.4864@.TK2MSFTNGP03.phx.gbl...
>I have successfully installed SQL Server 2005 on a server that also has SQL
>Server 2000. Using SQL Server 2005 interface, how could I connect to a
>named instance of a SQL Server 2005 database? As I try, it keeps
>connecting me to the SQL Server 2000 db. Is this something you set up in
>CLient tools? Please let me know, I connect to the SQL Server using a temp
>dns name.
> Thanks,
>
> Here is what I what to achieve:
> category1
> content2
> content3
> content4
> content5
> content6
>
>|||<programmingcodeATjards.com> wrote in message
news:e83mL7OrGHA.4864@.TK2MSFTNGP03.phx.gbl...
> I have successfully installed SQL Server 2005 on a server that also has
SQL
> Server 2000. Using SQL Server 2005 interface, how could I connect to a
> named instance of a SQL Server 2005 database? As I try, it keeps
connecting
> me to the SQL Server 2000 db. Is this something you set up in CLient
tools?
> Please let me know, I connect to the SQL Server using a temp dns name.
> Thanks,
>
Not sure what you're trying, but generally it's servername\instancename. If
not instance name is provided it deafults to the default instance.
>
> Here is what I what to achieve:
> category1
> content2
> content3
> content4
> content5
> content6
>
>
Connecting to SQL Server 2005
Server 2000. Using SQL Server 2005 interface, how could I connect to a
named instance of a SQL Server 2005 database? As I try, it keeps connecting
me to the SQL Server 2000 db. Is this something you set up in CLient tools?
Please let me know, I connect to the SQL Server using a temp dns name.
Thanks,
Here is what I what to achieve:
category1
content2
content3
content4
content5
content6Please disregard this text. Came from an old message.
"Here is what I what to achieve:
category1
content2
content3
content4
content5
content6"
<programmingcodeATjards.com> wrote in message
news:e83mL7OrGHA.4864@.TK2MSFTNGP03.phx.gbl...
>I have successfully installed SQL Server 2005 on a server that also has SQL
>Server 2000. Using SQL Server 2005 interface, how could I connect to a
>named instance of a SQL Server 2005 database? As I try, it keeps
>connecting me to the SQL Server 2000 db. Is this something you set up in
>CLient tools? Please let me know, I connect to the SQL Server using a temp
>dns name.
> Thanks,
>
> Here is what I what to achieve:
> category1
> content2
> content3
> content4
> content5
> content6
>
>|||<programmingcodeATjards.com> wrote in message
news:e83mL7OrGHA.4864@.TK2MSFTNGP03.phx.gbl...
> I have successfully installed SQL Server 2005 on a server that also has
SQL
> Server 2000. Using SQL Server 2005 interface, how could I connect to a
> named instance of a SQL Server 2005 database? As I try, it keeps
connecting
> me to the SQL Server 2000 db. Is this something you set up in CLient
tools?
> Please let me know, I connect to the SQL Server using a temp dns name.
> Thanks,
>
Not sure what you're trying, but generally it's servername\instancename. If
not instance name is provided it deafults to the default instance.
>
> Here is what I what to achieve:
> category1
> content2
> content3
> content4
> content5
> content6
>
>sqlsql
Sunday, March 25, 2012
Connecting to SQL Issue
Hello,
I am using SQL Server Management Studio that came with my visual studios .net 2005.
I open my web application to the design desktop select the tab labeled Server Express the click on the data base to connect it tell me it is connected but no tables show. I was told today by some one I need to be running SQL Server Studio Express I dont understand is the one I have better? The also told me the mdf file was a backup file which they said I need to create a database and then import the mdf backup file into it . I can figure out how to do this I am very new to SQL Server. Help please
Thanks
|||Where does the mdf file come from? Anyways you should attach it to your current SQL instance before you can use it. To do this in Managment Studio, right click Databases in Object Explorer->choose Attach->locate the mdf file. If attach succeeds, you'll see the new attached database under the Databases tree.|||Thank you,
I found the mdf file to be a bak file I created anew database and restored over the database I created. All tables showed up ok. I only have on question everything seem to work fine except I have no diagrams under the database is this normal not to have this information?
sqlsqlTuesday, March 20, 2012
Connecting to pervasive via ODBC
Has anyone successfully imported data from pervasive over the .net managed odbc bridge? Our admin has set up a odbc connection that works through Excel, but in SSIS the connection manager errors when trying to connect at runtime (the "test connection" button in the connection wizard reports that everything is ok though).
What error are you getting?|||"Data source name not found and no default driver specified"
|||A bit more info on this:
The connection seems to work in design time as metadata is fetched from the datasource to populate the column mappings in the datareader source|||
For anyone interested:
This was an issue with running the ODBC driver (presumably 32 bits) in 64bit mode. Running the package in 32 bit mode fixed the problem.
Saturday, February 25, 2012
Connecting SQL server to the net?
Hi all. Im using Visual Web developer 2005 and have successfully connected my SQL Server to Visual Web developer website. When i run it locally, its fine. But, i now would like the site to be placed on the net - but im not sure how to connect it properly in the webhost. Can someone tell me how this is done please, or a link? cheers.
You can add a connection string on web.config file<connectionStrings>
<add name="connectioname" connectionString="server=database server;uid=username; pwd=pasword; database=databasename;"/>
</connectionStrings>
then call this connection string on your page.
string strCon = System.Configuration.ConfigurationManager.ConnectionStrings["connectionname"].ConnectionString;
I hope this will help.
|||
Ok.....im still rather confused on how exactly the databse is linked. Firstly, i have the site on a external harddrive....but ive found that the SQL server databse is placed in a totally different location - C:\Program Files (x86)\Microsoft SQL Server\MSSQL.2\MSSQL\Data\Database.mdf
Surely i would have to link it some how for the site/databse to work properly on the site?
|||No ideas guys? Surely there must be a way so i can upload my SQL server database and connect it to my website? I can do it easily in Visual Web Developer in my computer....but stummped how to do it on the net.....|||Hi,
You may follow the steps below.
First, backup you local database.
Second, get the physical folder of the database file exist on your server. From your previous post, it isC:\Program Files (x86)\Microsoft SQL Server\MSSQL.2\MSSQL\Data\.
Third, restore your backup file to your server database. (Note, you have to replace theMove to Physical file nameitem in the Option tab with your real server-side database folder.)
Third, modify the connection string in your web.config file and call the string in your code by ConfigurationManager.
Thanks.