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 > august 2007

Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31

dba_tlog_shrink?
Posted by DaveF at 8/31/2007 10:57:13 PM
Does anyone know what dba_tlog_shrink is? I can execute it on my server but I can't seem to find any object with that name. Dave ...more >>


what is the difference between foxpro and sql server ?
Posted by Butmah at 8/31/2007 9:46:00 PM
please, what is the difference between foxpro and sql server ? and what are the disadvantage and advantage of foxpro ?...more >>

Database Diagrams - SQL Server 2005 on Vista
Posted by David Griffiths at 8/31/2007 6:40:38 PM
Hi all I am very new to SQL Server, I am working through my SQL Server 2005 for beginners book. I have SQL server 2005 installed on a Win 2003 Server. I have workstation components installed on my Vista Box. I am trying to create a database diagram. The DB is basic with just 4 tables....more >>

SQL Server Connection Problem with C# Web Site...
Posted by samadams_2006 NO[at]SPAM yahoo.ca at 8/31/2007 2:12:11 PM
Hello, I have a problem that I'm hoping someone will be able to help me resolve. 1) I have a C# Web Site in which I connect to the database: "Install Microsoft SQL Server 2005 Express Edition" via the link on: http://msdn2.microsoft.com/en-us/express/bb410792.aspx This Web Site has...more >>

Pefromance Issue SQL2005 / ASP .NET 2.0
Posted by mEmENT0m0RI at 8/31/2007 2:09:46 PM
Two environments: ASP.NET 2.0; SQL2005 STND SP1. This morning the web site got virtually non-responsive. The number of logical connections just kept rising on the SQL server and most of them(over 300) looked like this in sp_who2 output (both CPU and I/O at 0): WEBSERVER . dbname EXECUTE 0 0 8...more >>

How restore BAK file?
Posted by Bill at 8/31/2007 1:46:10 PM
We use Avaya IP Office. Call records are stored in programs such as Delta Server and Database Server Supervisor and backed up with SDX Archiver. Avaya says it's using Microsoft's SQL database. Question: How do I restore a database? I have a .BAK file that I need to restore, to try to retr...more >>

Profiler - just view Writes
Posted by Tmuldoon at 8/31/2007 1:27:08 PM
Hello, Is there any way to use profiler and just show the 'Writes' it does. I do not want to display anything else for a specific DB. Thanks, Tmuld ...more >>

Can not remove user from SQL database....
Posted by Mrpush at 8/31/2007 1:04:03 PM
Hello, I have a Db that has user name of 'dbo' and login name of 'sa'. For security reasons, I want this gone. This user was the owner, but I changed the owner to another user and verified. After doing this, I still cannot remove the dbo - sa user from the DB. I get errors: "Selec...more >>



SQL view not sorted when import to Excel
Posted by Pat M - City of Reno at 8/31/2007 11:40:01 AM
I have a view in SQL Server 2005 that is sorted. When I import to Excel, it comes in not sorted. Where the problem on this? I also posted on Excel Gen Questions. Thanks. -- Regards, Pat...more >>

Renaming Database Files
Posted by ExcelMan at 8/31/2007 11:10:11 AM
How can I go about safely renaming the data and log files for a database? Thanks. ...more >>

Stored Procedure vs Code
Posted by tolcis at 8/31/2007 8:32:31 AM
Hi All, I have a stored procedure that if I run it takes over 40 minutes to complete. I use exec stored_procname and parameters. However, if I run just the inside of the stored procedure (just the code) with hard coded parameters it takes under a minute to completed. Why would exec stored_p...more >>

Question about SQL Agent Jobs
Posted by FS at 8/31/2007 7:54:01 AM
Hi, I am running SQL Server 2000 and was wondering if there was a way to query the state of any given SQL Agent job? So i want to setup a seperate SQL Agent job that's going to go out and tell me if a particular sql agent job is in a "Executing Job Step 'x'" status or in a "Not Running" sta...more >>

Waitresouce of UNK in sysprocesses ?
Posted by SteveH at 8/31/2007 7:22:01 AM
SQL 2000 sp 4. I have a spid in sysprocesses with a waitresource of UNK: 0:393219:0:0. I've never seen this waitresouce type before - does anyone know what it means ? During this time the above waitresource occurred my application was suffering from a poor performance 'glitch' so I want...more >>

Cursor alternative
Posted by morphius at 8/31/2007 6:32:03 AM
Does anybody have a way to re-write this without using a cursor? This takes a long time to finish. The goal is to cut the processing time. DECLARE @the_emp_id nvarchar(50) Begin Declare EmpCursor Cursor For SELECT Employees.dbo.tbl_emplist.emp_id FROM Employees.dbo.tbl_emplist WHERE emp_a...more >>

SQL server 205 did not use index
Posted by Olafur at 8/31/2007 3:26:00 AM
Hi I have trouble with SQL 2005 optimize. I set up new SQL server with SQL 2005 SP2 and move database from old SQL 2000 server and after that I starting getting some performance problem. In some case the SQL server is not using indexes. In select statement where I select TOP X record from t...more >>

Copy Database from SQL 2000 to SQL 2005
Posted by Liz at 8/31/2007 12:26:30 AM
I'm trying to use "Copy Database" to copy a database from a SQL2000 instance to a SQL2005 instance; everthing looks ok until I execute the operation and get an error message on the action "Create Package" of "One or more arguments are invalid (Copy Database Wizard)" I've gone over it and ...more >>

Search and replace in multiple stored procedures
Posted by mohamad.ridha NO[at]SPAM intel.com at 8/31/2007 12:18:40 AM
Hi all, Does anyone know how to do the search and replace in multiple stored procedures using SQL 2005 Management Studio? Any help will be appreciated. Thanks! ...more >>

Check Constraint
Posted by Alan T at 8/31/2007 12:00:00 AM
What is the difference in table-level and column-level check constratint? Any example? ...more >>

SQL Server 2000 with Windows sever 2003 R2
Posted by Jouhayna at 8/31/2007 12:00:00 AM
Can SQL Server 2000 + sp3 work on Windows Server 2003 enterprise edition R2 Please I need a reply urgently ...more >>

Backup Question -- Old Files still attached
Posted by ExcelMan at 8/30/2007 10:26:51 PM
I was setting up the backup for a new database last evening and seem to have created a small problem. Although I was able to create a backup and restore it, in the process I seem to have left a couple of other copies of the database files in a state where they cannot be moved, deleted or copie...more >>

SQL Server data files fragmentation
Posted by manu at 8/30/2007 10:18:00 PM
Hi, Please let me know how can I check SQL Server database physical files fragmentation and do the defragmentation using any third party tools or MS provided tools. Is it possible to check it from SQL Server extended stored procedures or any other native objects. I know one such utility ...more >>

Can SQL Server 2005 and Sql Server Express both reside on server?
Posted by winlin at 8/30/2007 8:06:01 PM
Hello 1)How can you make Sql Server 2005 and Sql Server Express both be registered servers on the same server? 2)What do you do if when you start the Sql Server Express "service" and it always fails with an error message and it's icon remains red when the regular Sql Server runs as expect...more >>

No EM/Query Builder to access SQL Server on SQL Server 2005?
Posted by winlin at 8/30/2007 8:02:01 PM
Hello Since there is no Enterprise Manager to access Query Builder how do you access Query Builder on Sql Server 2005...more >>

size of paging file ?
Posted by Hassan at 8/30/2007 7:35:51 PM
What size should i allocate the paging file for SQL 2005 on say Windows 2003 64 bit with 16GB or 32 GB of RAM ? ...more >>

Errors and Warnings
Posted by cbrichards via SQLMonster.com at 8/30/2007 3:33:55 PM
Running SQL 2005, SP1 on WIN2K3. I am in the midst of troubleshooting High CPU and have identified several queries that could use some performance tuning. However, in the midst of performing some traces in Profiler, not wanting to rule anything out, I included some of the "Errors and Warning...more >>

How to chceck if sprocs has startup option on or off?
Posted by Bartolo at 8/30/2007 3:05:30 PM
Hi, I've looked through net but I couldn't find any simple soulution to this problem anybody knows?? Regards, Bartolo ...more >>

INDEXDEFRAG
Posted by istekk at 8/30/2007 1:08:03 PM
It was suggested that we run DBCC INDEXDEFRAG on one of our databases. How do I go about doing this? Do I run it in Query Analyzer or someplace else? I'm not that familiar with SQL and any help would be appreciated....more >>

User Account Failing
Posted by Rustom at 8/30/2007 10:57:30 AM
I am running SQL Server 2005 and I am using the Transfer Logins Task SSIS package to transfer logins from SQL 2000 to SQL 2005. I select the options to also bring across the SID. Unforunately, we can not use these accounts to succesfully log on after a migration. We are forced to reset th...more >>

How full backup works
Posted by ktrock at 8/30/2007 10:32:02 AM
Hello. Take this simple backup statement: Backup Database MyDB To Disk = N'p:\Backup-MSSQL$MySqlInstance\MyDB.BAK' With Name = 'MyDB full backup' Would you think that if MyDB.bak already existed it would be overwritten with the new backup? Or would it double in size, effectively containing ...more >>

Partitioned Index or table Question
Posted by S at 8/30/2007 9:31:38 AM
This is more looking for an opinion then a clear answer I have a Point Of Sale table that has 500 million records Contains PointOfSaleID Primary Key BIGINT UPC NVARCHAR(11) Quantity INTEGER PurchaseDate DATETIME, HouseholdID INTEGER, ExternalID NVARCHAR(50), ExternalHouseholdID NVARCAHR...more >>

locking concept for SQL 2005 EE
Posted by Lynn at 8/30/2007 9:14:07 AM
Hi, What's the default locking setting for SQL 2005 EE. In BOL, "By default, SQL Server Mobile uses row-level locking for data pages and page-level locking for index pages." Does SQL 2005 EE have same setting. What's the adv and disadv for each setting? How can I change the setting if...more >>

which patch or SP to install?
Posted by Daryl at 8/30/2007 7:48:05 AM
I am currently running sql 2005 standard build is 9.0.3161 I am looking to update it with the cumulative pacth3 for sp2... I notice on the builds page there are a number of builds after mine. Do I have to install each fix seperatly or do I have to reinstal sp2, becuase it has been refreshed ...more >>

Reorganize vs. REbuild Index Question
Posted by Richard K at 8/30/2007 7:34:03 AM
OK, I am assuming that by reorganizing my indexes it will do just that to optimize the indexes vs. rebuild will do the same but it will also let me adjust the amount of free space for the index. If I continue to use the default free space % would these tasks not have the exact same result? A...more >>

TDS and character encoding
Posted by raymond_b_jimenez NO[at]SPAM yahoo.com at 8/30/2007 7:25:42 AM
I've seen a dump of the TDS traffic going from my webserver to the SQL Server database and it seems encoded in Unicode (it has two bytes per char). Seems it would have a huge impact on performance if it travelled in one byte. Why might this be? rj ...more >>

remotely attached DB ends up readonly .. why oh why oh why ..
Posted by Sam Samson at 8/30/2007 2:17:09 AM
I have what seems like a commonish problem. I have copied my database (mdf and logfile) to a remote XP desktop machine .... when using SQL server managment express tool when I try to attach the DB it ends up readonly. The file permissions are not set to read only (a problem I have read) ...more >>

Linked Tables
Posted by Mark Shields at 8/30/2007 2:08:11 AM
I was wondering if there was any way to add a linked table reference into a SQL Server 2005 Database to an Oracle 7 Database. I am able to do this in Access but i really want to move my database on to SQL Server and this link is very important. Thank You...more >>

Moving tables in SQL Server 2005 from one server to another
Posted by NightOwl888 at 8/30/2007 12:22:47 AM
I have been working with databases for nearly 10 years now, but for the life of me I can't figure out how to move database tables from one server to another in SQL Server 2005 without using scripts. I used to use DTS in SQL Server 2000 and everything seemed to go smoothly. I used a combinatio...more >>

Moving tables in SQL Server 2005 from one server to another
Posted by NightOwl888 at 8/30/2007 12:19:17 AM
I have been working with databases for nearly 10 years now, but for the life of me I can't figure out how to move database tables from one server to another in SQL Server 2005 without using scripts. I used to use DTS in SQL Server 2000 and everything seemed to go smoothly. I used a combinatio...more >>

Security Audit
Posted by Peps at 8/30/2007 12:12:34 AM
Can anyone offer any advice in collecting user access? We have a server that hold at least 2 dozens of databases and I've been asked to collect the database names that reside on that server and also to compile a list of user accounts and access levels for every database. Thanks! ...more >>

How to fix an orphaned alias?
Posted by Magnus Bergh at 8/30/2007 12:00:00 AM
I have a database which has been moved from one server to another using backup/restore. Of course there were some problems with mapping of userid to logins. That was solved by running sp_change_users_login. But one problem remains. I had one userid that I had aliased to dbo. That userid is ...more >>

Difference between SQL 2000 st. and SQL 2000 Enterprise
Posted by Ib Schrader at 8/30/2007 12:00:00 AM
Hi there I feel a bit silly here. If spent the last 45 mins searching the web trying to find a definite list of the differences between SQL 2000 Standard and SQL 2000 Enterprise. All the links at microsoft.com seem to redirect to the 2005 version. If anyone can link me to a feature comparis...more >>

correlating objectid to spid
Posted by Neo at 8/30/2007 12:00:00 AM
Does anyone knows if its possible to know which objects my session access to? ...more >>

correlating session to objects
Posted by Neo at 8/30/2007 12:00:00 AM
does anyone knows if it's possible to identify the obejct my session is working on? meaning to correlate spid from sysprocesses to id at sysobjects. for exmaple, I run a select query on Table1 , and table 2 under session 56. can I see 56 correlted to the object Id of Table1 and Table2 ...more >>

"Detach Database" in SQL Server 2005 apparently dropped the database instead
Posted by NightOwl888 at 8/29/2007 11:53:48 PM
Hello, I am still trying to get my head around this one. I have been working on a new version of a website and decided I wanted to make a backup of the old database file before I tried running any scripts against it. Since the production website is currently down, I decided to detach the d...more >>

Extra logging in SQL error log
Posted by snafu66 NO[at]SPAM hotmail.co.uk at 8/29/2007 7:52:59 PM
Hi All, Hoping someone can assist with this. Is there an SQL trace flag, or other method, where I can get the SQL server error logs (2000 and 2005) to log database detachements, and changes in DB status (eg to read only from online etc). I thought about a trigger on sysdatabases (sys.datab...more >>

sql server on local machine
Posted by Stranger3 via SQLMonster.com at 8/29/2007 6:47:51 PM
I am relatively new to sql server. I have sql server running on a development machine and can access it with no problem from any application that I develop. My question is, if a new application is to be put onto a SINGLE machine with no network access, what is the process for putting that datab...more >>

HUGE Query Help
Posted by JOHN HARRIS at 8/29/2007 5:12:48 PM
I am going to paste the quesry I have below. This seems to work fine for = what it is, but I need it to drill down a bit further and I am at a loss = so any ideas would be helpful... This pulls a count, as you can see, for every time a worker select a bit = field in an online db. It has a Wher...more >>

SQLagent jobs schedule
Posted by Jay at 8/29/2007 4:28:41 PM
I'm running a test, but I have a job that I want to start at 3:10 AM and end at 2:50 AM. SQLagent took the job, but it isn't starting and when I ran it one time manually, it said the next start would be 3:10 AM. I would like to know my answer before Friday morning. ...more >>

Backup device in SQL 2005
Posted by at 8/29/2007 3:33:35 PM
Can you still create a backup device in SQL 2005 and if so How? Thanks! ...more >>

DPV's
Posted by Jay at 8/29/2007 3:07:23 PM
Is there any other way to do load-balancing other than SQL Server 2000's Distributed partition Views? I am aware that 2005 has done something like Distributed Tables, but that is, for my purposes, the same thing. What I do not want to do is try to guess what gets accessed in what fashion an...more >>


DevelopmentNow Blog