Best Way To Connect To A MSSQL Database

Nov 6, 2007

 Hello,
Is it better to use a DSN connection or using a connection string  Set Connection = Server.CreateObject("ADODB.Connection")
 Which is easier to use and more reliable?
 Also could I have all the connection info on one page and then just include it with a include statment everytime I need to query the database??
 
Thank you,
 
Rich
 
 
 
 

View 4 Replies


ADVERTISEMENT

How Many Users Can Connect To One Database In MSSQL

Nov 7, 2001

Dear Sir,
Can you please let me know as to how many users can MSSQL support at one time on a single database say test.

Thanks
Aman Gupta

View 2 Replies View Related

Conversion Of MSSql 2000 Database To MSSQL 2005 Database

Jan 18, 2008

How to convert a database in MSSQL 2000 to MSSQL 2005 database.Is there any tool or documentation available for this?

View 3 Replies View Related

Database Migration Plan - (mssql/msde To -&> Pgsql/mssql)

Feb 10, 2008

Hi,

i was planning to create a database migration tool ..
its a certain database of a DMS (document management system) to
another DMS (two different DMS)... from DMS using msde 2000 server .. and tranfer to a DMS using a postgre sql or mssql .. depends ..

they have different table structures and names . . :D

i was thing of what language shall i use.. or what language is the best to work on this kind of project :)

hoping for your kind help guys. thanks :)



br
Frozenice

View 1 Replies View Related

Connect MSSQL Without VPN

May 24, 2007

Hi All,

I have a mssql server that is located somewhere and i can only able to access it with my pc mssql when VPN is connected. Is there any solution/configuration that can let me to access the it without connecting to the VPN?
Please advice.

View 4 Replies View Related

Can Not Connect To Mssql With Php

Jun 6, 2007

Using mssql_connect($server, $user, $password) results in different ways the 'php server'

connects to the sql server.

On a workstation with WinXPProf, php uses the $user and $password to login and uses the

sql server authentication. Running the same script from a W2K3 server results in an error

because in this case the 'php server' tries to connect to the sql server using windows

authentication. (I have checked this difference with wireshark)

The problem has nothing to do with the sql server settings (mixed mode) / firewalls /

php.ini- file settings or versions of ntwdblib.dll because these are the same for both

connections. The problem looks more fundamental, probably due to settings in windows or

the iis version running on the server and the workstation.

Does anyone has a clue how to force php to use sql server authentication.



Pitching Theo pitcher_32@hotmail.com

View 2 Replies View Related

Simplest Way To Connect To Mssql Db

Jan 22, 2007

I'm an absolute beginner in asp/asp.net. You have been warned.
I managed to run and compile asp.net using win xp home edition, via Visual Web builder 2005 express edition. I managed to use its tools to create a test database and table and put values in it.
Now I wish to connect to this db using my aspx page. While fiddling around I finally able to drag the "table" icon on the database pane into my aspx page and it generate a code snippet below:
    <div>        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource1"            EmptyDataText="There are no data records to display.">            <Columns>                <asp:BoundField DataField="US_ID" HeaderText="User id" SortExpression="US_ID" />                <asp:BoundField DataField="US_NAME" HeaderText="USer Name" SortExpression="US_NAME" />            </Columns>        </asp:GridView>        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:nepConnectionString1 %>"            ProviderName="<%$ ConnectionStrings:nepConnectionString1.ProviderName %>" SelectCommand="SELECT [US_ID], [US_NAME] FROM [USER]">        </asp:SqlDataSource>    </div>
 When previewed in the browser, it seems to show the content of the db table. 
What I want to know is a sample coding on how to connect to the db the usual way (initialise the connection string, prepare and execute the query, fetch the content of resultset). Based on the code snippets above (it contains the info about the db name, table name and the column name I'm using), can anyone guide me by providing the lines of codes that retrieve the data?
 Basically the first thing I would like to do is fetching the data to be compared with user name and password submission after they click on login, among other basic stuff, which doesn't require bells and whistles like <gridviews> and other contraptions provided.
And another thing, would the connection string or other parameters be any different from my computer if I were to upload my aspx page including the mssql db file into my webhosting to be tested live?
Thanks for anyone out there willing to provide some hand-holding here! 
 
 
 
 
 
 
 
 
 

View 2 Replies View Related

Win32::ODBC Connect To MSSQL

Apr 19, 2004

Hi,

I wanted to know if there is a way to connect to my MSSQL without having to setup a datasource in the control panel.

Perferably I want to locate the database within my perl code instead. I don't want to have to setup a datasource each time I need a different database. Perhaps there is a way to pass the name of the database along with the username and password through the command line.


Any suggestions?

Thanks.

View 5 Replies View Related

How To Connect To MSSQL Server From HP-UX Environment

Oct 9, 2006

Hi,Please confirm.. is it possible to connect to MSSQL server by executinga shell script on HP-UX (UNIX) platform.Regards,Uncle Sam

View 3 Replies View Related

FILE DSN On UNIX To Connect To MSSQL

Sep 19, 2007

Hello experts,

I need to create a File DSN on AIX Unix server which can connect to MS SQL server 2005 on a windows machine.Can anyone please give me step by step procedure how to do it.Its an urgent requirement. Please help me.

Regards
Arvind L

View 3 Replies View Related

MSSQL 2000 - Cant Connect To DB From Remote Computer

Jun 21, 2006

Please bare with me as I do not have much knowledge in this area with MSSQL.

I have installed MSSQL 2000 Developer and I have setup a database which I am able to connect to and work fine with from the actual server MSSQL is installed on.

The problem comes in when i try to connect to that same database from a different remote server. It will not connect to the DB from this remote server but I know all the connection information is correct so its something on the MSSQL DB server causing this and not on this remote server.

Someone I know has had this problem and has fixed it but they wont tell me how. All I know is they said something about manually opening the ports on the MSSQL server and he also said when you set it to dynamicly determine the port that MSSQL is listening on it errored out. however if you set it staticly to 1433 it worked fine.

Ive also installed SP4 in attempt to fix this but no luck with that either. And I can also get the same exact remote server to connect to completely different DB server without issues.


If anyone can please help walk me through this I would be greatly appreciate and I am also willing to pay some money if it will make my life easier.

View 6 Replies View Related

Unable To Connect To Mssql Server Using Sql Express

Oct 13, 2006

Hi,

I installed Sqlexpress server 2005 and am able to connect to the server using the sqlexpress manager.

The connection parameters are:

server: 127.0.0.1 (This is an alias name pointing to TMD03SQLEXPRESS)
username:sa
password:test
mode: sql server and windows authentication mode
TCP/IP : enabled and listening on port number 1433.

But I am not able to connect to the server using PHP's mssql_connect function.

I tried various combinations like

mssql_connect("127.0.0.1","sa","test")
mssql_connect("local","sa","test")
mssql_connect("localhost","sa","test")
mssql_connect("TMD03SQLEXPRESS","sa","test")
mssql_connect("127.0.0.1,1433","sa","test")

but none of them works. I also tried OSQL and SQLCMD and they don't work either. They give me the following error message.

[SQL Native Client]Named Pipes Provider: Could not open a connection to SQL
Server [2].
[SQL Native Client]Login timeout expired
[SQL Native Client]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.

Can anyone please let me know what am doing wrong here?

Regards,
Celia

View 12 Replies View Related

Connect To Remote MYSQL From The Local Mssql

Dec 21, 2007

how ?

View 4 Replies View Related

Cant Connect To MSSQL Server Express 2005

Nov 6, 2006

Hi,

i have installed MS SQL Server Express 2005 on my local machine. Also the managment Studio. I can connect to the MS SQL Server Express 2005 with my c# programm and with the mangament studio.

I have in Windows/system32 the file ntwdblib.dll version 2000.80.2039.0. The TCP/IP and Ip Protocl are active. But i cant connect with php to the local MS SQL Server Express 2005.

My php code is:

mssql_connect('192.168.0.2,1433', 'martin', '');

I get the return code Warning: mssql_connect() [function.mssql-connect]: Unable to connect to server: 192.168.0.2,1433 in c:InetpubwwwrootProjekteSkriptemssql_connection.php on line 2


Does anyone know what i made wrong or i have forgotten?

mfg martin

View 5 Replies View Related

Cannot Connect By Naming Instance In Mssql 2005 Cluster

May 9, 2007

Hello,



I install Cluster naming instance of MSSQL 2005 Enterprise edition with SP2 and latest patch.

When I try connecting this instance from outside of the server by "server nameinstance name" I got connection error.

But when I connecting by "server name,port number" it's connecting with no problem.

Can someone help me resolve connection outside of the server with "server nameinstance name"?



Thanks

View 7 Replies View Related

MSSQL 2005 User Database Now Shows Up In System Database Folder

Dec 10, 2007

While attempting to set up sql replication in MSSQL 2005 one of my user databases is now in the systems database folder. I need to move it back to the user databases folder. Any help would be greatly appreciated.

View 16 Replies View Related

Not All Database Failover To Mirrored Database Server When MSSQL Service Stopped

Sep 4, 2007

We have a Prinicipal, a Mirror and a Witness server. We have automatic failover configured between the Prinicipal and Mirrored server. When we stop MMSQL service on Prinicipal, not all the databases failover to the Mirrored instance.
Any suggestions would be welcomed as we have a tight deadline to get this in Production.

View 5 Replies View Related

Adding Data To Database Or Viewing Database In MsSQL

Jun 14, 1999

I am new to ms SQL. I only have the use of the Enterprise Manager.
Creating tables I understand. However I am confused on how to add data to
a table or view the data in a table. Can this be done through Enterprise Manager? If I am adding a large amount of data do I have to use the query window. This seems like a tedious method. In Access yo have a form basically pop up where you can type in the record sets. Any advice would be appreciated! Sincerely,
Bill Bequette

View 1 Replies View Related

Lotus Nsf File Database To MsSQL Database

Aug 9, 2005

Would any body be able to suggest the best way switch a Lotus .nsf file to Ms SQL database or even to an Access?

I have a .nsh file that I am able to see the contents of but not the database structure, and rather then rebuilding the database and manually inserting the content I would like to import all the information from an old .nsf file that appears to have restriction on it.

Any Suggestions

View 1 Replies View Related

How To Write To Mssql Database

Oct 23, 2006

I am very new to asp.net. I really mainly use PHP but want to migrate to asp.net, but it doesn't seem that easy.I am creating a page for peson to pay a subscription page where they will enter personal information an credit card information.I created the form for this with validation controls.I don't know however how to write the form data to the mssql database.I am using mssql 2005, but i would need a work out for the 2000 version as well.

View 1 Replies View Related

Mssql Database Connection

Sep 8, 2005

I've come from the asp world into .NET and I have looked all over the web for the proper way to make a database connection to a MSSQL server and all I have found is samples of connections to Access databases. Can anyone point me in the direction of how to create a db connection for microsoft sql server.thanks

View 1 Replies View Related

Rename A Database Under Mssql 6.5?

Apr 17, 2000

Hello:

I am supporting a mssql 6.5, sp 4 application.

We have set up an user acceptance server with a database that is the same as production. However, I have been told that this database and server may be used for applying fixes rather than user acceptance.

To avoid confusion over which database is on which server, it might be a good idea to rename the database. I am not sure if this can be done un der mssql 6.5?

1)Can I rename a database?

2)If so, how can I do so?

Which system tables would I use to update?

Any information you can furnish will be appreciated. THanks.

David Spaisman

View 2 Replies View Related

New To MSSQL - Creating A Database

May 14, 2008

Hello all,

I'm new to MS SQL server.

When using the "Management Studio" how do I create a database? When it starts up, I only seem to have the option of connecting to a database, while not actually creating one :S

Thanks

View 10 Replies View Related

How Do I Log Into The MSSQL Express Database

Aug 25, 2006

David writes "Dear sir,
I've installed VS.NET 2005 Professional many times and find that the MS SQL Express 2005 is running.
My ambition is to log into this server so that I can convert my MySQL database into it. What is the default;
Hostname
Port
Username
Password

What tool is provided so that I might execute my schema to create a database in this server. This 'schema' will obviously have many tables inside. Most SQL products provide some type of utility program where one can create, edit, delete databases and an adminstration program. I see nothing of yours in my Programs -> MS SQL Server 2005 -> SQL Computer Manager.
Thank you,
David Kennedy"

View 3 Replies View Related

Security Of Mssql Database?

Jul 24, 2005

Hello, another question from a newbie to mssql.Is there a way of allowing access to database only by providing username andpassword (disabling trusted connection and preventing administrator toaccess database through enterprise manager or otherwise without supplyingusername and password)?What I would like is that my application upon instalation creates databasewith appropriate tables (already done this) and somehow solely creates andmanages user list and passwords so that there is no access to database otherthrough application. (Application would create a backdoor account shouldsomething go wrong)

View 1 Replies View Related

Export From Mssql Database

Jul 20, 2005

Hello,I try to export a mssql database into a csv-file.I tried this with asp, but it doesn't work.<%Dim objConnDim csv_pathSet objConn = Server.CreateObject("ADODB.Connection")objConn.open "database","username","passwd"csv_path =Server.MapPath("./") & "csv_test.csv"SQL ="SELECT * INTO OUTFILE 'C:inetpubwwwrootcsv_test.csv' FIELDSTERMINATED BY ';' OPTIONALLY ENCLOSED BY '"' FROM GROUPS"objConn.Execute SQLobjConn.CloseSet objConn = Nothing%>There is a problem near 'C:inetpubwwwrootcsv_test.csv'Can anyone help? Thank you.Manuel

View 1 Replies View Related

Database Trigger In MSSQL

Jul 20, 2005

How can i create database level triggers in MS SQL? i m not talkingabout table trigger or view trigger.Khurram.

View 2 Replies View Related

MDF Database To MSSQL 2005

May 13, 2007

I'm pretty new at this so bear with med



I've made af site in Visual Web Developer. On that site i've made a database and it worked finde when I first uploaded it to my FTP as a database file on the server. But due to security problems, my web hotel host has deactivated that possibility. Så now I have to put my data and tables into the MSSQL 2005 Database the host uses. Now here's the problem.



1: How do I do that?



2: How do I get tha tables I've made i Visual Web Developer over in SQL Server Management Studio Express så that I can upload it?

View 6 Replies View Related

Transfering MSSQL Database To Server

Sep 9, 2004

Has anyone had a problem transfering a database to a server.
This is the first time I have done this.
I have a site and sqldatabase hosted by a hosting company and I am supposed to transfer my database
This is what I'm doing

From the Start Menu, select "Programs" -> "Microsoft SQL Server" -> "Import and Export Data" then click "Next".
In the "Server" field, type in the Name or IP of the source server (your server), choose "Use SQL Server Authentication," type in your username and password, choose your database from the "Database" field, click "Next".
Note: You can also use Windows Authentication if the SQL server is a local server.
In the "Server" field, type in the hostname of the DiscountASP SQL Server (this is listed in your hosting control panel), choose "Use SQL Server Authentication," type in your DiscountASP database username and password (this was sent in your database order confirmation email), choose your database from the "Database" field, click "Next".
Choose "Copy objects…", click "Next".
Uncheck Use Default Option.
Click Options, uncheck "Copy Database users and database roles", "Copy SQL Server logins", "Copy object-level Permissions".
Leave next window as is, click "Next".
Click "Finish".

It seems to work ok untill it gets to about 90% done then a message says "There has been an error" and gives no more info.
Can anyone help me out

View 2 Replies View Related

How To Convert MSSQL Database Into .sql Files?

Apr 14, 2005

Hello ,
I'd like to convert the database + sp + tables + data into .sql file?
How

View 6 Replies View Related

MSSQL Database Comparison Tool

May 25, 2005

Does anyone know of a good (free) tool that will compare the structure of two databases.  Something that will compare Stored Procedures and Views would be great.Thanks.

View 3 Replies View Related

MSSQL Database Synchronization With Oracle

Jan 13, 2006

Hi all,
Well, I have created an applicatin in asp.net and it connect to MSSQL database, and it work fine.

There is another application which was developed in Oracle and the database is oracle 8i.

Well, wat i want is whenever a form is submitted from the asp.net
application, the data is inserted in the MSSQL server database and the
Oracle8i database also.

Can anyone help me how to proceed with it.

Thnks in advance for your help.
Regards
Vinay

View 1 Replies View Related

Mssql 6.5 Database As Publisher And Subscriber?

Feb 9, 2000

Hello:

I am running an application on mssql 6.5, sp4.

We are working on using a database as a publisher and a remote database as a subscriber for one replication in Canada.

WE havw just been told that another application on a different server(publisher/ distribution) wants to replication to our database as a subscriber.

We also will need(as a publisher/distribution) to replication to a second subscriber database after we completely test the first replication to Canada.

Therefore my questions are:

1) Can a database on a local database -- our database -- on one server be a publisher and subscriber to ther different databases?

2)has any one been involved with replication on a database used both as a publisher and subscriber to different replications requirements?

What are the pitfalls aside from the scheduling conflicts?

3) In terms of database space requirements, how much disk space extra do we need? What guidelines should we use? For each table as an article, assuming we are doing the full table, do we add 100% more space or what?

4) Any other pitfalls we should be aware of?

Thanks.

David Spaisman

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved