Archived Months
March 2003
April 2003
May 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
all groups > sql server (microsoft) > may 2007

Filter by week: 1 2 3 4 5

transpose sql columns
Posted by rinfo NO[at]SPAM mail.com at 5/29/2007 9:20:40 AM
Sorry for the dumb question, but I am just new enough to sql that I can't wrap my little brain around this one. I have a system that I need to import data into and I need transpose a few rows as columns. A good example would be if in pubs. I needed the following results. Book, Author1_au_lname...more >>


BULK INSERT ASCII value
Posted by Mark Minnie at 5/29/2007 7:48:24 AM
Newbie needing help. I am using BULK INSERT to get records into a table. In the flat file, I have many ascii 163 characters. The sterling pound symbol =A3. After the insert, I read the value back using ADO and I get ascii 250 for this character instead. Where should I look to make sure thi...more >>

stored procedure not found !! ???
Posted by Henning Winkler at 5/28/2007 2:42:28 PM
Hi all, I have a problem with a database on sqlserver 2000 ( 120 days eval ed) on Windows 2000. My database had been appended from another sqlserver 2000. But now I have problems to call a stored procedure. This sp is called by a VB6 application. First a command object ist created, a active ...more >>

Upgrade from SQL Server 7.0 to 2000
Posted by myrights99 NO[at]SPAM gmail.com at 5/28/2007 1:03:57 PM
I am not able to get detail information from what as changed from SQL Server 7.0 to 2000 from T-SQL commands, statements, syntax etc standpoint. any help, whitepaper, URL will be highly appreciated. Thanks ...more >>

storing docs in a database - how to upload?
Posted by M NO[at]SPAM at 5/25/2007 10:33:32 AM
I have a directory of files that I would like to upload with some data to a table so that I can store the files in the db. I'm not trying to parse files into rows, I want to stick the actual file in the column. Is there some kind of insert script, or bulk copy that I can use? I have about 150...more >>

Replication controls (for an SQL newbie)
Posted by John F Kappler at 5/25/2007 12:00:00 AM
Can someone point me at a website that might help me understand about replication and its parameters (e.g. jobs and schedules). We have SQL2005 on an SBServer 2003. We have a third-party database application that lives on the server. We also have four notebooks that keep copies of the appl...more >>

Time Out error for application
Posted by rittyta NO[at]SPAM gmail.com at 5/24/2007 8:59:48 PM
Hi, One of my application with around 20 tables was workng fine for quite a long time ...now it started giving error for users saying "Time out period elapsed prior to completion of the operation or the server is not respondig" My tables are not that big ..one of the tables have 100000+ reco...more >>

BOL 2000 side by side with BOL 2005?
Posted by Bruce at 5/24/2007 1:55:10 PM
Hello, Is it possible to have Books Online 2000 coexist with Books Online 2005 on the same machine? I currently have BOL 2000 on my machine and when I try to install BOL 2005 side by side with it, it detects the older version and insists on 'upgrading' me. If I decline the 'upgrade', the in...more >>



Why, after restoring a database, do I have to prefix all objects?
Posted by atoner.spam NO[at]SPAM gmail.com at 5/23/2007 1:33:52 PM
I recently implemented log shipping and wanted to test that the shipped version of the database I was restoring to was operational. So, I detached it from Sql Server, made a copy, and reattached it under a new database name. Then, I created a new server login called "sqlaccount" that should ma...more >>

AWE Configuration
Posted by Praveen at 5/23/2007 10:45:05 AM
I have windows 2000 Server Service Pack 4 and SQL Server 2000 enterprise edittion. System has 4GB of RAM. Can I use AWE feature. Thanks. ...more >>

SUBSTRING in User Defined Function - Invalid column
Posted by jknaty at 5/23/2007 7:59:27 AM
I'm trying to create a function that splits up a column by spaces, and I thought creating a function that finds the spaces with CHARINDEX and then SUBSTRING on those values would an approach. I get an error saying that the I have an Invalid column 'Course_Number'. Not sure why but I am very ne...more >>

select query...
Posted by Oonz at 5/22/2007 9:14:06 AM
Hi friends, i have to select values from the table consider with the following record: No HomePhone WorkPhone Mobile 20 23232 98327 the selection have to be done as: No DeviceType DeviceInfo 20 HomePhone, Mobile 23232, 98327 since there...more >>

multiple record set
Posted by Mike J at 5/18/2007 6:16:26 PM
Not the best at Sql is it possible to return multiple recordsets from a Stored Proc if so does any body have a example TIA MJ ...more >>

Many to Many? Maybe Not
Posted by strvariant NO[at]SPAM yahoo.com at 5/16/2007 11:30:12 AM
I have two tables. One for Payments and one for Transactions The tables are set up basically like this Payments Account Payment_Amount PaymentID 1234 $100.00 1000 1234 $100.00 1001 1234 $100.00 ...more >>

OS/Data/Logs all on RAID 5
Posted by cricketweb NO[at]SPAM gmail.com at 5/13/2007 12:28:07 AM
A new server has been configured where I work and the OS, SQL Server Data and Logs have all been put on a Raid 5 array. I challenged this, and got told this "is the best way of doing it in regard to performance" by a senior DBA. This server will contain over 40 fairly large databases, and is a p...more >>

How to update selected rows in database? Please Help
Posted by Sand at 5/12/2007 5:07:52 AM
Hi, I have the following code. Code Snippet Private Sub BtnUpdate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnUpdate.Click Dim a As DataTable = CType(DgvCnts.DataSource, DataTable) Dim changedRows As New ArrayList ' retrieve changed rows Dim ...more >>

DBCC INPUTBUFFER results into table
Posted by Tom at 5/9/2007 4:04:33 PM
Does anyone know if there is a simple way to get the results of a DBCC INPUTBUFFER() request into a table? I have a process for monitoring activity that will give me the results of sp_who2 into a temp table, and want to scroll through the active connections and get the input buffers into anothe...more >>

Adding a named instance in SQL Server 2005
Posted by Dan Gray at 5/8/2007 6:30:44 PM
I already have SQL Server 2005 up and running on a server. We have a new program to install that requires a specific name for it's named service. How do you install another named service in SQL Server 2005, run setup again from the install CD? Thanks ...more >>

Basic Table in SQL Server 2005
Posted by Sabir at 5/8/2007 12:42:36 AM
Hi, Could someone tell me how to create a basic table in SQL Server 2005 using Enterprise Manager? Thanks, Sabir Barkaat ...more >>

How to tell what SQL 2005 version I'm runing?
Posted by Clayton Sutton at 5/7/2007 8:59:18 PM
Hey everyone, We have a server that is running SQL 2005 but we don't know if it's full SQL 2005 or SQL 2005 Express. Can someone tell me how I can find out? We DON'T have SQL Server Mangement Studio installed. -- TIA, Clayton P.S.: I wrote an iTunes podcast tutorial and ju...more >>

SSIS & BI
Posted by Zamdrist at 5/4/2007 1:16:54 PM
I need at least Visual Studio 2005 Professional in order to install and use SSIS right, because you can only access SSIS via Business Intelligence For Visual Studio...is that correct? I have Visual Studio Standard, and it seems that won't do. Can anyone confirm? Thank you. ...more >>

How to read CSV File in SQL Server 2005 using OpenRowSet Function
Posted by Salman Shehbaz at 5/4/2007 8:40:03 AM
Hi i want to access a CSV file using OpenRowSet function in SQL Server 2005. Anyone having any idea; would be of great help. Regards, Salman Shehbaz. ...more >>

screw Yahoo.. buy Oracle or IBM
Posted by aaron.kempf NO[at]SPAM gmail.com at 5/4/2007 7:25:55 AM
wtf why would MS buy Yahoo.. they need to buy Oracle or IBM instead I mean what's more important.. paying 50 billion for 4 billion in revenue? or paying 100 billion for 100 billion in revenue? or even SUN I mean for christ sakes--- Search Engines aren't that important-- buy someone that wil...more >>

set default data directory??
Posted by tlyczko at 5/4/2007 6:01:59 AM
I know SQL 2005 will put its program files in C:\Program Files etc. How do I make SQL 2005 always put databases and related files (logs etc.) on the D:\ drive, which will be much bigger than C:\, with room to grow, etc.?? This is the SQL backend for a Windows SharePoint Services 3.x intranet...more >>

Using SUM with a subquery
Posted by vespaboy at 5/4/2007 3:54:21 AM
the following query returns the error: Cannot perform an aggregate function on an expression containing an aggregate or a subquery. Any ideas how to make it work? It's the second SUJ causing the error and i can see why but can't work out a solution. thanks in advance dan SELECT SUM(CO...more >>

Moving a database
Posted by Dave at 5/3/2007 2:49:44 PM
I'm very new to SQL Server 2005, so please be kind. We had a vendor in and they loaded their software and the database that was created is sitting on the root (c:) drive. On this server we have another drive where the database should reside, is there a way to move this database to the correc...more >>

Creating a backup script
Posted by Rico at 5/3/2007 3:42:39 AM
Hello, I'm having trouble creating a backup script to save all the databases in the database server. I have the following script but can't figure out how to get this to execute. As you can tell, I'm not a skilled T-SQL guy, nor a DBA. I'd like to create a single file for each db with n...more >>

Incorrect Syntax
Posted by GitarJake at 5/1/2007 5:41:01 PM
Hello all, I am not a SQL guy, so a lil hep is needed. When I run the following in QA... SELECT TOP 10 SUBSTRING(C.CASE_TITLE, 0, 20) + '...' AS LinkText, 'Modules/HD/ViewTicket.aspx?ticket=' + CONVERT(varchar(10), C.CASE_ID) AS LinkURL, S.STATUS_TITLE + '-' +...more >>


DevelopmentNow Blog