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 > december 2006 > threads for tuesday december 12

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

Can someone tell me where is the error
Posted by Chris at 12/12/2006 10:07:01 PM
Hi, I have been trying with this *&^%%$$&^ crap since 5pm. I am trying to convert this vb.net code which works absolutely fine Dim sTemp As String = "41234554321" Dim iSum As Integer = 0 Dim iDigit As Integer = 0 ' Calculate the checksum digit here. ...more >>


Insert or Update Decision - Performance Issues
Posted by Brian Kudera at 12/12/2006 8:42:00 PM
I am reading in a text file line by line and need to perform some calculations on the data before loading it into a SQL table. I was originally loading the data into SQL using ADODB via vbscript. I would open a recordset, check to see if it was AtEndOfStream, and if so, then add a new row, ...more >>

Query Analyser Hogs Server Resources?
Posted by Peter Nurse at 12/12/2006 7:56:16 PM
I have used a SQL Server 2000 database with an Access ADP front end for 2-3 years with several different server boxes without experiencing the following problem . . . If I work on the database over the period of a day, I generally experience at least one prolonged period (say > 10 min) during...more >>

Need Help with Calculated Field
Posted by Steve Harp at 12/12/2006 7:20:58 PM
Hi All, I'm not sure this can be done in a calculated field but here's what I need. I have a table that stores time off for employees (such as vacation, sick time, etc). An employee can take partial days off. The table has 2 datetime fields, StartDate and EndDate that store the beginning an...more >>

Using REPLACE
Posted by David C at 12/12/2006 7:12:50 PM
I am trying to use a REPLACE function to replace '<br />' in a text field with CHAR(13) but it fails and I'm not sure why. My statement is REPLACE(activity_note, '<br />', CHAR(13)) The activity_note is a text column and I want to be able to replace HTML line breaks in this field with car...more >>

how to use stored procedure in vc++
Posted by priyanka at 12/12/2006 6:43:26 PM
hello friends, i am trying to use stored procedure to insert data in datbase....i hav done concction with oledb consumer wizard....can you just help me to get step by step procedure next what to do?how to proced Thanks you ...more >>

Deployment without install of SQLExpress
Posted by Phantom Hawk at 12/12/2006 5:39:42 PM
Is it possible? I have references to a fair number of Microsoft.SqlServer.* assemblies. I'd really (REALLY REALLY) rather not have to run installs on each machine this web project has to run on. My preference is for being able to copy a folder and go. And installation means later upgrading...more >>

Showing which records came from which side of the UNION operator?
Posted by Mark Rae at 12/12/2006 4:27:51 PM
Hi, When using the UNION operator, is there any way to tell which records came from which side of the UNION? E.g. SELECT PrimaryKeyColumn, SecondColumn, ThirdColumn FROM table1 WHERE <criteria1> UNION SELECT PrimaryKeyColumn, SecondColumn, ThirdColumn FROM table1 WHERE <criteri...more >>



A UDF with a Table Variable as Input
Posted by TonyL at 12/12/2006 3:46:15 PM
I have been trying to get a function to accept a table variable as input with little success After reading the BOL TSQL reference for CREATE PROCEDURE I find the following line "Parameters can take the place only of constants; they cannot be used instead of table names, column names, or the...more >>

best way to get a count on a left joined table?
Posted by sloan at 12/12/2006 3:18:03 PM
I'm trying to figure out some alternative ways to find some counts, so I can test them for performance. My example below shows what I'm talking about. (My real situation is based on real tables, not variable tables, but I'll use variable tables to show what I'm getting at) Basically, I ...more >>

DB Restore
Posted by obelix via SQLMonster.com at 12/12/2006 2:29:52 PM
I am restoring a DB with a different name from the original via enterprise manager, but I get an error about using WITH MOVE and RESTOR FILE LIST ONLY. How can I go around this problem...Help! -- obelix "Whether you think you can or you think you cant you are right" .... Anon Message p...more >>

Possible BOL Bug in "tempdb and Index Creation" article for SQL Server 2000
Posted by ionFreeman NO[at]SPAM gmail.com at 12/12/2006 1:30:06 PM
"When you create an index, you can specify WITH SORT_IN_TEMPDB option, which directs the database engine to use tempdb to store the intermediate sort results used to build the index. Although this option increases the amount of disk space used to create an index, it reduces the time it takes to...more >>

Developer Tool.
Posted by Alex Castillo at 12/12/2006 11:50:12 AM
Hello... What you think is better as a programming tool to build applications using MS SQL 2000 database server? MS Visual Fox Pro 9.0 or Sybase PowerBuilder 10.5? Please let me know your opinion, and if you know about any reference I could read as part of my decision to select a progra...more >>

how to convert a date string to datetime
Posted by someone NO[at]SPAM js.com at 12/12/2006 11:30:17 AM
Hi, I just found 'Aug-14-1973' isdate returns 0, how to convert a string like this into sql datetime formmat, mybe 'Aug/14/1973' too. Thanks. ...more >>

check constraint to prevent duplicates non key column
Posted by jobs at 12/12/2006 10:46:28 AM
Noob question. I have a column that's not the indexed key and I want to disallow the inserting of dups in that column (column1). adding a a check constraint with expression unique (column1) is apparently not the answer. Thanks. ...more >>

query string problem
Posted by trint at 12/12/2006 7:29:09 AM
I have this query string: string queryString = "select * " + "from products " + "where name = " + selectedCategory3.Trim() + " "; SqlCommand command = new SqlCommand(queryString, connection); SqlDataReader reader = command.ExecuteRead...more >>

Repost: Mappoint 2004 - SQL 2005 - CLR Integration
Posted by Jody Greening at 12/12/2006 7:28:01 AM
Hello all, I require the ability to be able to get route info (specifically Distance) from inside a SQL 2005 Function (so that it may be displayed in a view). I know that it may be rough performance wise but I have no other option right now (I don't think anyway...) I created a small clas...more >>

Help with a Query to be run accross 2 SQL Servers.
Posted by Sam at 12/12/2006 7:14:24 AM
I hope someone can help me with this . We have 2 SQL Servers. ACCTG and OPS. Database on ACCTG SQL Server is Solapp and on OPS SQL server is Opsapp. I needed to run a query to see what values in Table -SOSHIPHeader Coloumn- User7 did not exist on OPSSQL server Databasse-Opsapp Coloumn -O...more >>

INSERT with WHERE clause??
Posted by sethukr NO[at]SPAM gmail.com at 12/12/2006 6:36:54 AM
hi everybody, Hope i'm in the right group. If not, please forgive me. I'm very much screwed by INSERT clause. Is it possible to use INSERT with WHERE condition?? Can anybody explain me with an example. ...more >>

Column header as field data
Posted by SenseiHitokiri at 12/12/2006 6:23:35 AM
Does anyone know if it's possible to set a column header as data that appears in the 1 row that it is returned? ...more >>

Restore only few tables of the database
Posted by Chedva at 12/12/2006 1:21:27 AM
HI I'm designing a database. This database will be installed in a few servers. Some of the tables in the database the user can't change only once a month the "center" should send their data to all clients. No connectivity between installations (Replication isn't relevant). What we thougth to do ...more >>

simple query
Posted by Mr. SweatyFinger at 12/12/2006 1:17:54 AM
SELECT CategoryName FROM ads_categories WHERE (adnum = 12) returns 3 rows: Catering Cleaning Concierge yet i want it to return all the rows in one bite with a <br> thrown in Catering<br>Cleaning<br>Concierge MAKE IT SO! ...more >>

query performance issue
Posted by Santosh at 12/12/2006 12:36:19 AM
Hi, We are running Sql Server 2005 SP1 on a windows 2003 server. The server has quad processor with 8 GB ram. We have also enabled the 3 GB switch on the windows. This server is also running Veritas backup with its own sql express instance. We have currently 6 databases that are runn...more >>

Composite index
Posted by Bassam at 12/12/2006 12:00:00 AM
Hello If there is a clustered composite index on a table (using multiple columns, InvoiceDate , CustomerID , StoreID for example) then users beside occasionally search by those columns , sometimes search mostly by 1 column of them alone (InvoiceDate), in that case will the parser uses the c...more >>

Error 8159 - Simple query
Posted by João Araújo at 12/12/2006 12:00:00 AM
Hello! Can someone help me finding why this query doesn't work? select 1 C1, 'Interno' [C2], 'ProntoPagamento' [C2], (select c1 from (select count(a.c1) from (select distinct 1) a(c1)) B(c1)) [C3] I get the message: Server: Msg 8159, Level 16, State 1, Line 1 'B' has fewer columns than w...more >>

Date within Stored Proceedure
Posted by Materialised at 12/12/2006 12:00:00 AM
Hi All, I am writing a stored proceedure which simply selects some basic data out of the table. Within this Table is a field named 'DateAdded', which is a date field. I am wondering if there is anyway I can write my query so it will only retrieve messages, younger than 30 days old. Thank...more >>

DATETIME
Posted by TBoon at 12/12/2006 12:00:00 AM
convert (datetime, '2006/11/20') is ok. convert (datetime, '11/20/2006') is ok too. Why can't SQL 2005 convert (datetime, '20/11/2006') ??? ...more >>

Simple query doesn't work - Error 8159
Posted by João Araújo at 12/12/2006 12:00:00 AM
Hello! Can someone give me a clue why this query doesn't work? ...more >>

Composite Unique Key
Posted by Sugandh Jain at 12/12/2006 12:00:00 AM
Hi, Can we make a composite unique key for a table separate from a primary key? Regards, Sugandh ...more >>

Good Books On SQL Server 2005
Posted by Goofy at 12/12/2006 12:00:00 AM
Hi All, Can anyone recoomend a really good book on SQL Server 2005, Im particularly interested in how the security works and Reporting Services. -- Goofy ...more >>

SQL Server 2005 Security
Posted by Goofy at 12/12/2006 12:00:00 AM
Can anyone reccomend a good on-line resources which takes you through the security and how to set it up. An on-line video / web cast would be really good. Thanks -- Goofy ...more >>


DevelopmentNow Blog