Archived Months
January 2003
March 2003
April 2003
May 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
April 2008
all groups > sql server programming > january 2006 > threads for monday january 2

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

Too many fields in one table ??
Posted by Agnes at 1/2/2006 10:16:15 PM
one of my tables got around 160-200 fields, 80%of them are nvarchar(50) Some said it is very poor design for the table / Does any doc/specificatoin can let me know "a better way to design table "?? Thanks a lot ...more >>


setting a field filter to all records
Posted by tshad at 1/2/2006 9:36:12 PM
If I have a statement in a Stored procedure such as: CREATE PROCEDURE GetRecord @ID Int As SELECT Name, Address, Salary, ID FROM Candidate WHERE ID = @ID I want to actually setup this procedure to see all records regardless of @ID (in which I would pass ID as 0) or only records which...more >>

Table design advice for wildcarded maximum value.
Posted by Jerry C via SQLMonster.com at 1/2/2006 9:09:38 PM
I have been scrounging around in here and BOL for some specific table design advice and figure it's finally time to just come out and ask my question: I am wondering if it is reasonable and, if so, how can I design a table that has a key column value that represents 'all others'. The watered do...more >>

Please help me with a query statement!!
Posted by Vanessa Lee at 1/2/2006 7:20:25 PM
Hi Can you help me with a Select statement? It should be simple, but I am lost. It should be something quite opposite to the JOIN statements, as they will allways give me NULLs for non matching values, but I actually want nonmatching values. I have two tables. How to query the two tables (belo...more >>

export to XML
Posted by shank at 1/2/2006 6:03:43 PM
I'm on a shared server with no DTS capabilities. Is it possible to use a stored procedure to export data from an SQL recordset into an XML file on a remote server? i.e. I would need to create http://mydomain/myfile.xml Anyone have sample code? thanks ...more >>

Table xml schema
Posted by Sharon at 1/2/2006 5:44:40 PM
Hi, Is there a way to extract a tables xml schema, for client input validation? Thanks. -- Sharon. ...more >>

Generate BCP data file with money columns using C#?
Posted by nick at 1/2/2006 5:25:03 PM
I need to use C# to generate the data files for BCP. Which C# data type I should use to generate the data columns for SQL money money? ???? money; FileStream fs = new FileStream("test.txt", FileMode.CreateNew); BinaryWriter bw = new BinaryWriter(fs); ...more >>

Write ' in T-SQL
Posted by Hugo Madureira at 1/2/2006 4:31:39 PM
Hello all! I'm trying to build a string using the ' character. As this character is used to delimiter the strings, how can I write it inside a string? Tanks in advance, Hugo Madureira...more >>



How Alter column name of table?
Posted by ReTF at 1/2/2006 4:27:01 PM
Hi all, I need modify one column name of my table. How I can do this? Thanks ...more >>

BULK INSERTing UNICODE data with format files
Posted by Nitin M at 1/2/2006 3:36:24 PM
Hi, I am trying to bulk insert data with UNICODE characters into a table using a format file. I am using SQL Server 2000 with all the latest SPs. When I try to bulk insert the data I get the following error. "Bulk Insert: Unexpected end-of-file (EOF) encountered in data file." What am I ...more >>

Create new sql server login
Posted by venkat at 1/2/2006 3:34:41 PM
Hi, Is there any way to execute sp_addlogin stored procedure to create a new sql server login from a login account who has minimum privileges on database. (He is not a member of either sysadmin or security admin). My problem is I need to create new sql ser...more >>

No of fields in a table
Posted by Agnes at 1/2/2006 3:18:52 PM
sp_help only list out the field name in the table, I want to know the total length in that table. thx ...more >>

Dynamically select tables
Posted by Ron at 1/2/2006 3:15:53 PM
Hi, I am writing a stored procedure which needs to select different tables based on different parameters. I used to use 'CASE' to select different columns, so I tried to use following statement like "select * from CASE @id WHEN 0 then 'EMPLOYEE' END". It doesn't work. What i need to achieve ...more >>

AutoNum + Exception
Posted by at 1/2/2006 1:56:12 PM
Hi all, I created a table with an autonum field, with a stored procedure to insert new record to the table. however I found that the autonum will keep increase when some unique constraints is voliated. I tried to use Begin Transaction, and rollback when there's error during the insert ...more >>

can primary key be derived/created from 2 columns?
Posted by Rich at 1/2/2006 1:24:02 PM
Hello, In MS Access a primary key can be created from 2 (or more) non-unique columns which would comprise a unique column --- as follows (from these 2 repeating columns) using the Indexes dialog box in table design and this places a Key symbol on the respective columns: col1 col2 1 ...more >>

Default values do not get created in SQL 2005 tables
Posted by Bob at 1/2/2006 12:50:01 PM
Got a table with fields CreatedBy and CreatedOn I set its Default Value or Binding to Suser_Sname() and Getdate() respectively. Testing inserting new records from my VB.NET user interface I find that neither default values get populated, yet I have a trigger for insert or delete that poluates...more >>

Capture Auto Increment Value
Posted by DNKMCA at 1/2/2006 12:26:09 PM
Hi, I have a Auto Increment field in a table. here i want to capture the auto incremented value, format it and insert into another field/table. for example: if my auto increment value is 10, i want to format it like CHDOCREF_10 and insert to another field. please help...more >>

size of result
Posted by prefect at 1/2/2006 11:42:08 AM
is there a way to determine the size of an sql select query accurately that runs over the network ? thanks... ...more >>

Execute SSIS package via sp
Posted by TomT at 1/2/2006 10:26:03 AM
Is there a way to run an SSIS package via a stored procedure? I haven't found anything in BOL. I am currently doing this by running a job that executes the package, but was wondering if there's a new sp for this. Thanks, and happy new year, TomT...more >>

Joining fields
Posted by Jean-Paul Rijnsburger at 1/2/2006 5:18:09 AM
Hello, I Hope one of you can help me with the following: I try to join three fields from a table into one output field: month, day, year ==> date. And I can't get it tow work right. The datatype of the fields is numeric. Since this query is nested into another one the datatype of the outpu...more >>

Transaction Log Filling
Posted by Manish Sukhija at 1/2/2006 2:12:01 AM
Hi Guys, I've a problem regarding transaction log, i have a databasse which is to be accessed very rairaly inspite of that after few days it shows warning as: APPROACHING RESOURCE LIMIT MSSQL Quota DB: ABCD_database has used 66 MB out of 80 MB limit whil...more >>

TSEQUAL
Posted by G.Jerrestam at 1/2/2006 1:45:01 AM
I have, in stored procedures in SQL2000, used the TSEQUAL-function when doing updates. example: table test is defined like this(id int,description varchar(100),t_stamp timestamp) create proc test @id int,@description varchar(100) @ts varbinary(8) as update testtable set description = @descr...more >>


DevelopmentNow Blog