Psst! Did you know DevelopmentNow is a mobile web site design agency?

Contact us for help mobilizing your site, or to sign up for our beta Mobile Web SDK!


Archived Months
March 2003
April 2003
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
all groups > sqlserver server > november 2007

Filter by week: 1 2 3 4 5

Getting the identity of some newly created row
Posted by at 11/3/2007 9:03:52 AM
If I have an account table where the column "accountno" is an identity i.e. auto-generated, and I insert a new row like so (sorry, but all- caps keywords are so 70s): insert account values (20000.00, 42) and then want to do something with the newly created account rows accountno, like inse...more >>


What's the right data type for an id
Posted by Gotch at 11/3/2007 7:12:20 AM
hi, I'm building a bulletin board and each message should have its own id. what is the best data type in that case? I might have over 1000 messages a day, for now I chose bigint. Any other options? Thanks ...more >>

Running ACT! 2008 Database on two Laptops
Posted by Charles Turner at 11/3/2007 12:00:00 AM
Hi guys, Hope some of you SQL database experts out there can help me, 'cos at the moment I'm going mad! I want to use ACT! 2008 which uses MSSQL on 2 Laptops, (Vista & XP) one is my own (Vista) and the other is a company laptop. I can't synchronse using a network connection between the two...more >>

about Microsoft SQL Server 2005 Express Edition Service Pack 2
Posted by apung at 11/2/2007 11:32:00 PM
hi, i'm apung from indonesia. i have a problem when i was updating my windows using windows updates. there was a notification said Microsoft SQL Server 2005 Express Edition Service Pack 2 (KB 921896) can not be installed. please help me. thank you -- apung01...more >>

VMWare ESX
Posted by Ken at 11/2/2007 7:53:31 PM
Is anyone running large sql server 2000/2005 databases on VMWare ESX? Any comments / tips about configuring for best performance, best hardware, and stability, ...? I already presume that database files and logs are on a separate File Storage system such as SAN. Thanks ...more >>

64 bit and max server memory
Posted by Hassan at 11/2/2007 5:14:57 PM
Do we still need to put a cap to the max server memory settings for SQL on a 64 bit machine or just leave it to the default ? ...more >>

Generic report and dataset
Posted by greg at 11/2/2007 4:52:35 PM
Hello, I am new to SRS. So this is a new-be question. When creating a new report in visual studio. When creating a new dataset. Do you always need to create a query string to retrieve the fields that can be used on the form? Is there some SQL picker query builder. Where you can build a query...more >>

Multi column subquery help requested
Posted by SandpointGuy at 11/2/2007 4:09:00 PM
IDkey| ColA| ColB| ColC 100| A12693| 1528602| 132.56 101| A12693| 1528602| 132.56 200| A13823| 363985| 52.12 201| A13823| 363985| 52.12 300| A23234| 435675| 12.14 To pull out the dups, I can use: select cola, colb, colc, count(*) from table group by cola, c...more >>



Can't start engine
Posted by Jay at 11/2/2007 4:01:12 PM
SQL Server 2000 cluster While trying to move the master, model, etc db's I put trace flags into the startup according to the instruction in: http://support.microsoft.com/kb/224071 When that didn't work, I tried splitting the 3 args into 3 seperate options. Now, I can't get in to change i...more >>

sql 2005 copy database wizard fails x64 to x64
Posted by paul moore at 11/2/2007 3:32:18 PM
dies with event log message from .net 2.0 runtime "failing application dtexec ...kernerl32.dl...." others have reported this but i have seen no resolution...more >>

Vachar( 100) vs Varchar(2000) vs Varchar(max)
Posted by Nalaka at 11/2/2007 3:21:17 PM
Hi, if I always store less that 90 characters..... is there a storage or performance panalty.... if I set the size to 2000 or MAX? Thanks for your help Nalaka ...more >>

forcing remote evaluation of like filters with linked servers
Posted by paul moore at 11/2/2007 3:13:30 PM
i have server1 server 2 is linked to server1 server 3 is linked to server1 all sql2005 on server1 i go select foo from [server2].[db].[dbo].table where bar like '%ff%' union all select foo from [server3].[db].[dbo].table where bar like '%ff%' by looking at the execution plan I can see t...more >>

Memory issue
Posted by Stuck at 11/2/2007 1:11:42 PM
Or stage environment has "only" 2gb memory while the production has 8gb. We have a couple of large tables in the DB that is around 1-2gb large. We are noticing that when you make queries against these big tables we get timeouts the first couple of times and then it works. I have also looked...more >>

SQL move (by restore) to new hardware
Posted by RW at 11/2/2007 12:40:03 PM
I need to move SQL 2000 with approx. 400 databases and about 1 TB size to new hardware, plan is to build server and then install clean SQL 2k keep same SP level on OS and SQL side, keep same drivs and paths to make it simple, my question is about security. From my past exp. I know that moving ...more >>

Transfer Rate Versus Access Time
Posted by Scott Eguires at 11/2/2007 12:16:03 PM
I am building a new server. What is more important with respect to query speed? The transfer rate of the drives or the access time? Thanks for any info you can supply....more >>

The server principal 'Domain\name' already exists.
Posted by Erin at 11/2/2007 11:34:00 AM
I'm trying to create a login called am\samchicrm002$ in SQL 2005. I get the following error "The server principal 'AM\SAMCHICRM002$' already exists." I have dropped and try to re-add the login but nothing works. I'm not using Kerberos. Do I need to? I just want this login to work. I ran select...more >>

one-to-one relationships in a database diagram
Posted by Andy Fish at 11/2/2007 11:29:57 AM
hello, I am trying to figure out how to draw a 1:1 relationship in a database diagram (or with foreign keys) from visual studio 2005. in the books online it explains one-to-one relationships and even shows one in a screenshot, but I haven't found any way of creating them TIA Andy ...more >>

DBname (loading)
Posted by Jay at 11/2/2007 11:27:15 AM
We attempted to restore a database to a new name via EM (2000) and it errored. Now, in the database list it shows as "(Loading...)". I believe restarting the instance will clear it, but I was wondering if there is a way to clear it that doesn't involve a restart. ...more >>

SQL Server 2000 log shipping Destination Database question
Posted by Jason Huang at 11/2/2007 11:22:23 AM
Hi, I would like to implement the log shipping for our SQL Server 2000. But in the Add Destination Database screen, only the source database server name in it. I can't find or type in the destination server name. What could I have done wrong? Thanks for help. Jason ...more >>

CORRUPTED BAK files
Posted by mrique at 11/2/2007 10:31:57 AM
Please could you help me to determine why a BAK file can be refused by sql server when calling a recovery process I Allready have these ideas - Other version of sql server making BAK file than the recovery one (or... not a real BAK file !) - BAK file altered on file system (disk problem...)...more >>

Restoring a database to a database with a different name.
Posted by Mufasa at 11/2/2007 8:46:42 AM
If I have a database Fred and I want to restore it on the same machine as Fred2, how do I do that? I know I can specify the files it restores to I just have a memory the last time I did it that it said you can't restore to the database with a different name. TIA - Jeff. ...more >>

could not find table error
Posted by Dan D. at 11/2/2007 7:37:03 AM
Using SS2000 SP4. When I run DBCC SHOWCONTIG (ActionsNeeded) WITH TABLERESULTS, ALL_INDEXES I get an error "Server: Msg 2501, Level 16, State 45, Line 1 Could not find a table or object named 'ActionsNeeded'. Check sysobjects." All objects in the database are owned by "memsym". If I try "D...more >>

moving a 2005 DB to 2000
Posted by Darin at 11/2/2007 5:19:54 AM
I haven't tried this yet so forgive me. But are there any issues with taking a database on SQL 2005 and putting it on a machine that only has sql 2000? I know when you attach the 2000 DB in 2005 it does some type of upgrade - is there a cooresponding "downgrade"? Darin *** Sent via Devel...more >>

backup question
Posted by Dan D. at 11/2/2007 4:44:01 AM
Using SS2000 SP4. Is there any way to back up to a .bak file just selected tables from a database? Thanks, -- Dan D....more >>

Help connecting to SQLEXPRESS using asp.net
Posted by lytung NO[at]SPAM gmail.com at 11/2/2007 2:03:20 AM
WE have just upgraded our database from sql 2000 to sql express. Nowthe asp.net code doesn't work. I tried many different things, no luck. Please help! thanks very much. Here is the connection code: conn = New SqlConnection( "Server=xxx.xxx.net,1433; UID=User; PWD=lxxx2007;Database=mssql3"...more >>

How to log errors within a transaction and survive a ROLLBACK
Posted by william NO[at]SPAM accupointe.com at 11/2/2007 12:21:50 AM
Within a transaction, want to be able to log errors to an activity log table but if errors occur and a ROLLBACK is invoked the errors logged to the activity log table get rolled back also. What's the best way to handle this situation? ...more >>

Use query plan to a stored procedure
Posted by Hassan at 11/1/2007 10:53:55 PM
How can I ensure the query plan that I see through my management studion sticks to the sproc irresepective of where its called from ? I dont want it to change. I know there is plan guides.. How can i do so ? I can see the query plan using display estimated execution plan and I guess i can u...more >>

Time needed to do a shrinkfile
Posted by Henrik Davidsen at 11/1/2007 10:08:31 PM
Hi, My company has a SQL Server 2005 standard edition used for storing some log information. The log is only used for some BI reports, and is not part of our critical db's. The server has pretty much been running on its own, and my colleagues and I have not given it the attention that was n...more >>

Figure out no. of index tree levels
Posted by Hassan at 11/1/2007 8:47:23 PM
I want to figure out how deep the index tree is from the root node.. And want to get a feel of how the index structure actually works and whats in every page of the tree for a table starting from the root node. Say i have a table with just a clustered index on it. And as i start inserting ...more >>

backup
Posted by Ron A at 11/1/2007 8:27:42 PM
Can I do a diffenential Backup on a simple recovery mode Database? ...more >>

Restore Deleted Instance of SQL 2000
Posted by it NO[at]SPAM clowwater.com at 11/1/2007 6:16:28 PM
We had a server with SQL 2000 on it. It had two instances. Worked great. We decided to upgrade to SQL 2005. We ran the upgrade on the default instance. Everything was great. Before we upgraded the second instance, someone went into 'add remove programs' and removed the second instance o...more >>

Could this be run using OSQL script
Posted by AHartman at 11/1/2007 5:37:23 PM
If there a way to detect if backup fails? I like to add better error handling... I need to be able to run using a script not thru the Sql Scheduler. DECLARE @name VARCHAR(50) -- database name DECLARE @path VARCHAR(256) -- path for backup files DECLARE @fileName VARCHAR(256) -- filename for...more >>

LoginName #
Posted by Ann at 11/1/2007 4:11:01 PM
SQLServer is the Database. GUIs show Login name. Sometimes the login name changes to 'Login #' ... like 'Mary 2'. What might make this happen? ...more >>

SQL server 2005 64 bit Replication
Posted by JDS at 11/1/2007 1:21:01 PM
We are planning on upgrading our production environment to SQL server 2005 64 bit on 64 bit servers. Will we need to upgrade the target servers that we are replicating to to 64 bit also?...more >>

Identifying SQL Server version and edition
Posted by ryblah9 at 11/1/2007 12:44:15 PM
I work in asset management and am looking for a solution to identify a sql server version and edition from the command line. We run 300+ SQL servers with multiple versions and editions so a manual tracking system is not ideal. The MS article requires running sql statements against the server but...more >>

Need Advice on Backups
Posted by TDanley at 11/1/2007 12:12:17 PM
We are a pretty small sized company that has one sql server that also serves as our application server. We backup our server to a tape drive nightly using Veritas. We have a Dell PowerValut 110T. Starting about two days ago (much to my dismay) backups started failing. We have 3 main SQL Se...more >>

Locking...
Posted by Joe at 11/1/2007 11:57:01 AM
I am working with a client who has a badly programmed application. Every so often the database will stop responding and it seems to be caused by locks in the database. Is there a global setting for lock timeout? Is there a process that I can run to look at locks and auto expire them after...more >>

moving system databases
Posted by Jay at 11/1/2007 11:54:12 AM
I want to move the system databases and tried following the instructions from: http://support.microsoft.com/kb/224071 (How to move SQL Server databases to a new location by using Detach and Attach functions in SQL Server). It didn't work. Adding the startup parameters "-c -m -T3608" does no...more >>

bcp invalid date format
Posted by at 11/1/2007 11:14:02 AM
Hi, I have problem in BCP utility while exporting data to sql server. It works in my system and my friend's system , but it gives the following when its run in production server. SQLState = 22007, NativeError = 0 Error = [Microsoft][SQL Native Client]Invalid date format SQLState = 22007, Na...more >>

Identify long running tranactions
Posted by Shawn at 11/1/2007 10:21:02 AM
SQL 2000 - How can I identify transactions that take longer than X seconds to complete and the TSQL statements that make up those transactions?...more >>

Open transactions
Posted by Jay at 11/1/2007 10:14:43 AM
Is there a way to tell how much of a transaction log file has open transactions? For example: You have a 10 MB transaction log that is 50% full ( DBCC sqlperf(logspace) ) and you backup the log. After the log backup you see it is 25% full. Therefore, 25% of the transaction log held open t...more >>

S2005 maintenance plan issues
Posted by Pete Berry at 11/1/2007 10:04:28 AM
One of our servers is running 9.0.3054. I created a simple maintenance plan of 3 steps within a single subplan: (1) Full Backup all databases daily (2) Maintenance cleanup task (on success of 1) (3) cleanup history task (on success of 2) steps 1 and 3 run just fine. Step 2 on the other ha...more >>

Utilize better with memory switch
Posted by Jane at 11/1/2007 9:44:01 AM
Hi all We added /3GB /PAE to the boot.ini for sql 2000 SP4 on the Windows 2003 R2 SP2 standard server with 4GB RAM. Is there a way to know whether it utilize the 4GB RAM better with /3GB /PAE switch? Thank you...more >>

Differences between SQL Server and MySQL
Posted by Hassan at 11/1/2007 9:43:51 AM
Where can i find differences between SQL Server and MYSQL ...more >>

BCP invalid date
Posted by Thiru.net at 11/1/2007 9:20:01 AM
Hi, I have problem in BCP utility while exporting data to sql server. It works in my system and my friend's system , but it gives the following when its run in production server. SQLState = 22007, NativeError = 0 Error = [Microsoft][SQL Native Client]Invalid date format SQLState = 22007, Na...more >>

SQL Server 2005 Missing Reports Icon/Context menu - HELP Please
Posted by Kinch at 11/1/2007 9:17:41 AM
Hi All I have 2 SQL Server 2005 Ent X64 servers. Neither of them is running reporting Services or has it installed They are both (in theory) identically configured. However ... One has a Green reports button in the Object Explorer Details panel the other doesn't Neither has a reports contex...more >>

Data and Log files
Posted by Rick at 11/1/2007 9:06:27 AM
Installing SQL 2005, how can I specify what volume to put my Data and Log files on? I do not see the option. thanks Rick ...more >>

BULK INSERT performance
Posted by Scott Nichol at 11/1/2007 8:49:39 AM
Question/sanity check about BULK INSERT performance. I load a 300,000 row text file into my largest table every day. The file loads into an empty table with the same structure and defaults but no indexes in about 10 seconds, for a rate of 30,000 rows/sec. The same file takes more like 3000 se...more >>

DB Shrink - Could not adjust the space allocation for file Error
Posted by JKL at 11/1/2007 8:20:03 AM
About once a month I receive the follow error from my weekly DB Shrink job. I have always run a DBCheck afterwards and the database is clean. I have searched the web and MS but have been unable to find any detailed information on this error message. Any help / comments would be greatly appr...more >>

Query latest attached database
Posted by Heiko Schuler at 11/1/2007 7:03:57 AM
Hi all, does anybody of you know a system view or something similar which returns, which database was the latest one attached? I'm trying to write a little SP to change the default default logsize / growth rate for the latest attached database and therefore need to know which one it is. ...more >>


DevelopmentNow Blog