Archived Months
January 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


all groups > sql server (alternate) > february 2005 > threads for february 22 - 28, 2005

Filter by week: 1 2 3 4

Timeout expired
Posted by sqluser at 2/28/2005 11:14:51 PM
Hi, I am getting an error "Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding." My application is developed using VB.net. I use SqlServer2000. I get this error when 15-20 clients work with the same page.When the user click...more >>

execution plans
Posted by Ragu at 2/28/2005 5:59:34 PM
Hi Can you give me sone pointers to where I can get more information about the various operations like index seeks,Bookmark Lookups,Clustered Index Scan in an execution plan. Thanks Ragu ...more >>

list of databases in Analysis Services
Posted by Hippi at 2/28/2005 3:52:17 PM
Hi all, I have to write a program to read the names of databases in Analysis Services. I don't know which table I can get this information from. Thanks a bunch ...more >>

New Question Regarding LOG SHIPPING & MASTERDB
Posted by smyers1972 at 2/28/2005 3:33:48 PM
I got log shipping to partially work *lol* any how what my new issue is, the masterdb, any good documentation? Ive tried searching google and find very little on that matter. Thank you ...more >>

About SQL field Type
Posted by Ulan yrysbaev at 2/28/2005 3:21:02 PM
Hi Friends I have question. I connected oracle and MS access tables(via Delphi7). I wanna get type of field in indicated table. For example if it is integer or boolean e.t.c Please tell me the SQL function or whatever that retrievs type of field. Thanks *** Sent via Developersdex http...more >>

BCP Beginner - Please Help
Posted by Stevie D at 2/28/2005 2:58:27 PM
Hi, I am completely new to the BCP utility and fairly new to SQL Server I am learning from a book and I am trying the following example (the server I'm learning on is called contractor and a password has not been give to the sa) bcp pubs..authors out authors.txt -C -r \n -t, -U sa -P -S c...more >>

Help needed to improve the performance of the query
Posted by rsarath NO[at]SPAM gmail.com at 2/28/2005 10:25:26 AM
Hello, I have the following setup and I would appreciate any help in improving the performance of the query. BigTable: Column1 (indexed) Column2 (indexed) Column3 (no index) Column4 (no index) select [time] = CASE when BT.Column3 = 'value1' then DateAdd(...) ...more >>

Slow SQL Query - Case in Where Stmnt
Posted by shootsie at 2/28/2005 10:22:11 AM
Hi, a query of mine slowed down significantly when this statement was added into the where: (DATEDIFF(day, Col_StartDate, GETDATE()) BETWEEN 1 AND (SELECT CASE datepart(dw, getdate()) WHEN 1 THEN 2 WHEN 2 THEN 3 ELSE 1 END) ) What ...more >>



Problem with Excel Pivot Table
Posted by Bajal Mohamed via SQLMonster.com at 2/28/2005 9:49:58 AM
I am facing problem like; We generate reports thru Excel Pivot table. The data is coming from sales cube. Let?s assume that there are 2 products A and B. The user wants to filter for each product and view ?stock in hand? and ?total sales? for particular month (as two columns). From the Pivo...more >>

Can I EXPORT tables to a backup DB and delete them from my production server?
Posted by war_wheelan NO[at]SPAM yahoo.com at 2/28/2005 9:07:13 AM
I have a database file approximately 30GB in size which creates 3 data tables daily. I need to reduce the size of the DB due to disk size limitations. Could I EXPORT some tables, let us say over thirty days old, to something like DB_Name_Archieve and them delete them from the production DB to ...more >>

aggregate sql question
Posted by Neal B. Scott at 2/28/2005 7:19:16 AM
Given this table: CREATE TABLE #T_PEOPLE ( SSN char (9), BIRTHDAY datetime ) insert #T_PEOPLE(ssn, birthday) values('123456789', '1/1/60') insert #T_PEOPLE(ssn, birthday) values('111223333', '1/1/50') Which query is faster to find the ssn of the older person? This query: select top 1 SSN ...more >>

How to remove WITH FILLFACTOR = 100 when Generate Sql Script ?
Posted by rabii at 2/28/2005 7:14:48 AM
Hello, I'm using Entreprise Manager (for Sql Server 2000) to generate my database's script. By mistake, i've changer FillFactor one time. And, now I can't remove this data from generated sql script. How to remove that ? Thank's a lot. ...more >>

How do I get uppercase values returned only.
Posted by Phillip at 2/28/2005 7:10:01 AM
I have a table where inactive names are lower case and active names are uppercase. Note: Not my design. Anyways I want to select all names form this table where the name is uppercase. I see collate and ASCII pop up in searches but the examples don't seem usable in queries as much as they were ...more >>

DataSet Update Problem
Posted by patels NO[at]SPAM india.com at 2/28/2005 4:13:45 AM
I know this is very very silly. But I am stuck and don't know what to do. I have a simple form which has 1 textbox and a 'Save' button. I have created a Database connection and an Adapter with Dataset with the help of Wizards. I have binded by text box control to one of the database field...more >>

Best practices for field sizes
Posted by Brian at 2/27/2005 8:17:10 PM
Can any one direct me to sources for best practices of field types and sizes to use for commonly used information such as address, names, city, business names .... Thanks, Brian ...more >>

sp_executesql vs. stored proc.
Posted by LineVoltageHalogen at 2/27/2005 3:41:49 PM
Greetings All, currentley there is a heated discussion in my place of work over which method is better/more efficient for simple selects. Background: 1.) Simple Application that uses sql server for backened db. 2.) The application is only inserting and selecting data from the db. 3.) The deve...more >>

sp_executesql vs. stored proc.
Posted by LineVoltageHalogen at 2/27/2005 3:40:56 PM
Greetings All, currentley there is a heated discussion in my place of work over which method is better/more efficient for simple selects. Background: 1.) Simple Application that uses sql server for backened db. 2.) The application is only inserting and selecting data from the db. 3.) The deve...more >>

How to create a new serverinstance but with old datafiles?
Posted by Adrian Hjelmslund at 2/27/2005 12:43:13 PM
Hi group I want to make a new serverinstance, but based on some old files from a previous instance I once had from a SQL I scrapped. I only know how to use the SQL Server enterprise manager console, and I haven't found any tools in there to do that. Any suggestion will be more than welcome. ...more >>

Tricky group by order by query
Posted by scott NO[at]SPAM spacehug.com at 2/27/2005 10:11:32 AM
Hello, I'm trying to find the most optimal way to perform a tricky query. I'm hoping this is some sort of standard problem that has been solved before, but I'm not finding anything too useful so far. I have a solution that works (using subqueries), but is pretty slow. Assume I have two table...more >>

Tempdb gets out of control when inserting records
Posted by AG at 2/27/2005 4:34:52 AM
I have a very big table with 20 million records DistinctProjectionKey which i join several times to different tables in this query. select distinct distinctprojectionkeyid,dpk.MarketID, dpk.Classificationid, dpk.DistributorID, dpk.ManufacturerID, dpk.LocationID, dpk.TimeID,P4.FACTOR as f...more >>

[DBNETLIB]ConnectionCheckForData (CheckforData())
Posted by javier.sangines NO[at]SPAM gruposenda.com at 2/26/2005 1:35:38 PM
Hi... SQL SERVER 2000 SP3, WINDOWS 2K SERVER... If i run this command on a remote server select replicate(' ',190) i have the following error [Microsoft][ODBC SQL Server Driver][DBNETLIB]ConnectionCheckForData (CheckforData()). Server: Msg 11, Level 16, State 1, Line 0 Genera...more >>

forcing dbsqlexec to exit cleanly
Posted by Gary at 2/26/2005 12:56:04 PM
I am developing a simple DB-Library program in C calling SQL Server 2000 on windows 2003 and NT 4. I have some T-SQL code that checks for the existence of a table and want to abort the program if the table doesn't exist. I issue a raiserror if the table doesn't exist and then call RETURN. I co...more >>

Efficiently joining same table twice
Posted by honda at 2/26/2005 10:21:26 AM
My main table has the following structure: t1 (id_primary, id_secundary, name) i.e. [(1,1,"name1"), (2,1,"name2")] I want to join this table with the following second table: t2 (id_primary, id_secundary, value) i.e. [(1, NULL, "value1"), (NULL,1,"value2")] The join should first try to f...more >>

Stored Procedure and multiple keys which could be NULL
Posted by oopaevah NO[at]SPAM yahoo.co.uk at 2/26/2005 5:42:17 AM
I have a table which has 10 columns which make up the secondary key. 1 or more of these columns can be set but the remaining columns in the secondary key will be null. For example : id k1 k2 k3 k4 k5 k6 k7 k8 k9 k10 data ------------------------------------------------- 0 1 1...more >>

OT:Check it out AllAdvanatage is back
Posted by CPS at 2/26/2005 2:07:07 AM
http://www.surfjunky.com/?r=cps ...more >>

Date query question!
Posted by news.wanadoo.nl at 2/25/2005 8:43:26 PM
Hi, I've a problem with making a query. I need to get out a result where a date for example 25-02-05 is in a table. The problem is that the dates in the table are old like 25-02-03. So is there a sollution where I only need the day and month to get the result? Thanks, Fred ...more >>

error 7965 not a valid recordset property
Posted by Filips Benoit at 2/25/2005 7:57:24 PM
Dear All, (No aswers on access newsgroups) Access2000.adp connected to SQL-server 2000 MainForm unbound: seachform on companies meeting a complex combination of criteria. SubFrom and ListBox to display the searchresult ( 2 outputs to test what's best). Searchresult is stored in a creata...more >>

Converting Decimal to String W/O Decimal Point
Posted by JD at 2/25/2005 6:15:38 PM
I'd like to convert a Decimal value into a string so that the entire original value and length remains intact but there is no decimal point. For example, the decimal value 6.250 is selected as 06250. Can this be done? ...more >>

SQL-problem
Posted by Filips Benoit at 2/25/2005 5:54:12 PM
Dear All, Tables: ORDER, ORDER_PROPERTY relation ORD_ID = OP_ORD_ID ORDER: ORD_ID, ORDT_ID, ORD_NAME, .... ORDER_PROPERTY: OP_ORD_ID, OP_PRP_ID, OP_VALUE I want a list ORD_ID, ORD_NAME, OP_VALUE of all orders with ordertype (ORDT_ID) = 1 showing OP_VALUE for OP_PRP_ID = 144 and a blanc c...more >>

Help with update query please!
Posted by mo at 2/25/2005 4:07:59 PM
I need to bring the ssn's into UniqueSups (supervisors) from tblNonNormalized. My inherited DB is not normalized and I find it extremely irritating due to the workarounds needed. I created tblUniqueSups by doing a select Distinct Supervisor Name. Now I need to bring in the SSNs of the Unique Su...more >>

Importing CSV files
Posted by tgru at 2/25/2005 3:24:54 PM
Hello, I need to import a bunch of .csv files. The problem I am having is the "non data" information in the files creating bogus rows and column definitions. Here is an example of the csv file. CBOT - End-of-Day Futures Bulk Download 2001. 2 Year U.S. Treasury Notes Futures Date ...more >>

MS SQL 6.5 Unable to connect.
Posted by InProcess at 2/25/2005 2:35:00 PM
Let me start by saying that, yes we know v6.5 is no longer supported by Microsoft and that moving to SQL2000 might resolve our problem. Actually the migration to SQL2000 is 1 to 2 months out and in the QA phase now. Unfortunately we need to resolve the current 6.5 issue now as it heavily impact...more >>

BCP Format File
Posted by Query Builder at 2/25/2005 2:12:25 PM
I am new to BCP. Can anyone help me understand this? I tried searching the BOL but it doesnt show much help on syntex. Lets say I have a simple table and want to out put the records into a file. Then with that output file, I want to create a format file using the BCP utillity and builk insert it...more >>

BCP Utility - Skip rows..
Posted by hharry at 2/25/2005 1:25:29 PM
Hello All, Does the BCP utility enable you to selectively import rows from a flat file to a table ? For example: The first column in my flat file contains a record type - 1, 2..7 I only need to import types 1, 2, & 3 Can this be specified in the .fmt file ? Thanks in advance hh...more >>

Need help / suggestion
Posted by lighthammer at 2/25/2005 12:20:11 PM
Hey guys I have to implement a dynamic Parent - > Child Scenario ... but the catch is as Follows : I need to create this Table Design so that I can have multiple Parent -> child - > parent Relationships (ie Db driven "Window Explorer - feel". 1 Folder that holds another Folder that holds...more >>

How to check when a stored procedure was last called/executed
Posted by bajwa at 2/25/2005 12:03:34 PM
Hi Our SQL server has a lot of stored procedures and we want to get some cleaning up to be done. We want to delete the ones that have been not run for like 2-3 months. How exactly will i find out which ones to delete. Enterprise manager only seesm to give the "Create Date" How exactly can I fin...more >>

Simple select question!
Posted by DBC User at 2/25/2005 11:01:47 AM
Hi, I feel so stupid to ask this question, but here it goes When I select a column from a table, if the column has a null value I want the select to return me a blank. I have done this before but I forgot, some one help? select name, age from people in the above query the name can be n...more >>

2005 Express - Concurrent Connections
Posted by Sebastian at 2/25/2005 10:19:50 AM
Hi all ! Does someone know how many concurrent connections 2005 Express can accommodate ? The limit on MSDE was 5 before performance drops considerably. Thanks for your help. Sebastian ...more >>

2 Questions: license Installation and Speed
Posted by aaron NO[at]SPAM axsstudios-dot-com.no-spam.invalid at 2/25/2005 9:56:10 AM
Hello, I have two questions, first some background info: We are running SQL 2000 on a Windows 2003 server for out aircraft parts database software. There are 7 workstations (windows 2000 and XP) that run the parts database. 4 of those workstations run really fast, the database calls ar...more >>

data transform and compare with in a query
Posted by Dan Gidman at 2/25/2005 9:41:24 AM
Okay all I have a problem. I have two list of adresses and phone numbers. I do not have control over the contents of the lists The only unique field between the two is the phone number. I need to be able to inner join the two lists on phone number. This would normally be straigt forward but...more >>

Parameterized order by clause: doesn't work
Posted by JJ_377 NO[at]SPAM hotmail.com at 2/25/2005 8:39:07 AM
Can someone tell me why SQL seems to ignore my order by clause? I tried to run through the debugger, but the debugger stops at the select statement line and then returns the result set; so, I have no idea how it is evaluating the order by clause. THANK YOU! CREATE proc sprAllBooks @SortAsc...more >>

Backing Up the Database (Newbie Question)
Posted by gkarm NO[at]SPAM softhome.net at 2/25/2005 3:12:40 AM
I have a Database on a MS-SQL Server wich was at the beginning 55 MB (size). Every time I Backup the database the size increases (50 mb each time) !!! Now it is over 700 MB of size and I can not store it in a CD !!! Somebody told me that the size wich is increasing is that of the LOG FILE... Wha...more >>

Machine Name In Trigger
Posted by Neil at 2/25/2005 1:18:37 AM
Is it possible to get the machine name in a trigger so that it can be stored in a field? Thanks. ...more >>

Assigning column types in select into
Posted by Ray at 2/24/2005 11:08:09 PM
Group, Is there a way to assign nullability on a column when using a select into? I've tried some of the usual things like coalsce, isnull, and cast. Since the new table gets definition from the source table or can be somewhat adjusted with cast is there a way to cast a not null? In the e...more >>

passing a field name into a parameter
Posted by Don at 2/24/2005 8:29:01 PM
say I have a table with field1,field2,field3,.... and have a SP with a parameter @myfield is there a way I can do Select @myfield from Table1 thanks for your help ...more >>

Delete rows in Excel From DTS package
Posted by smonczka NO[at]SPAM hotmail.com at 2/24/2005 2:53:00 PM
I have a DTS package that needs to refresh data in 3 separate Excel spreadsheets on a daily basis. The problem is that unless I manually delete the previous day's data, it appends rather than replaces. I can't delete the excel files on a daily basis, as they have to be there for the DTS packa...more >>

Syntax problem
Posted by Dominik at 2/24/2005 2:32:17 PM
Hello. I hope I have choosed right group. I have problem preparing SQL syntax. I think it is quite simple but I haven't tried to do this till now. The thing is that I have a string and I must compare it with text fields in database. But the problem is it could not be simple > SELECT * FROM T...more >>

Key Lock Hashed Resource Text Value not unique?
Posted by Jake at 2/24/2005 11:29:21 AM
I have a deadlock situation, part of the problem looks like this; spid ecid dbid ObjId IndId Type Resource Mode Status ------ ------ ------ ----------- ------ ---- ---------------- ------- ------ 404 0 9 792389892 1 KEY (010086470766) SIU WAIT ...more >>

Importing Access DB
Posted by bijoy at 2/24/2005 11:02:39 AM
I am in the process of upgrading from Access to SQL Server. When I import the tables from an access file, everything looks normal in Enterprise Manager. All the tables are listed properly. However, when I login through Query Analyzer, the tables names have a prefix (my username). Why is that? ...more >>

Error with the trigger
Posted by Michael Teja via SQLMonster.com at 2/24/2005 10:29:42 AM
I made a trigger for delete just like this. " CREATE TRIGGER [MbPromoHdrDel] ON [dbo].[MbPromo_hdr] FOR DELETE AS Declare @severity int, @IdNmbr nvarchar(10) Set @Severity = 0 Declare NoId Cursor Local Static for Select [Promo_Id] from deleted Op...more >>

[mssql][ant] Failed to execute: GO
Posted by m.zywno NO[at]SPAM gmail.com at 2/24/2005 7:55:40 AM
Hi, I am trying to execute a simple sql file thru ant task. The file is: use [centivaTest] GO However I get the errror message: [sql] Failed to execute: use [centivaTest] GO So I changed the file to: use [centivaTest] ; GO as ant treats ';' as a delimiter. However another erro ...more >>

Update using an Inner Join
Posted by indabert at 2/24/2005 5:48:48 AM
Hello, I have two tables (table1 and table2). I want to set a flag in table1 for each common row with table2. I use the following syntax UPDATE table1 SET flag='Y' from table1 INNER JOIN table2 on (table1.a = table2.a) AND (table1.b = table2.b) However the situation arises where I may have...more >>

Syntax error in update?
Posted by sgpgpjr NO[at]SPAM yahoo.ie at 2/24/2005 4:44:23 AM
Hi all, I have just written a sql statement where I want two fields updated from another table. The statement like so: update kpidmatter set clientcode,clientname = (select clientcode, clientname from clientconversion where (clientcode = kpidmatter.clintcode)) where exists (select clientco...more >>

Need help in log shipping
Posted by smyers1972 at 2/23/2005 8:56:41 PM
I am attempting to set up log shipping from my primary dell clustered 2 node sql server to a backup quad xeon server in case of a failure. When I follow the information given from Microsoft regarding this and I get to the point where I am at "Add Destination Database" I am being prompted for m...more >>

Sql Server Developers Licence
Posted by jack-b NO[at]SPAM humlog.com at 2/23/2005 8:51:27 PM
Hi, I have just started a business and I was wondering if I could get some advice about product selection. I am currently buiding my website using asp.net connecting to sql server database. My question: Am I only required to purchase a SQL Server Developers Licence? I won't be hosting the s...more >>

Query to tranform rows to column
Posted by muzamil NO[at]SPAM hotmail.com at 2/23/2005 8:05:47 PM
Hi Your help for the following query will be highly apprecaited. I've wasted alot of time on it. Data definition is at the bottom. Thanks ----------------------------------- Business need: User selects answers for few questions. Answers are presented in the form of radio buttons. ...more >>

Using SELECT LIKE with ADO Parameter in ASP Page
Posted by codeurai at 2/23/2005 3:28:22 PM
Is it possible and how do I do use a select like query with an ado command's parameter object? For Example: Instead of this: command.CommandText = "SELECT * FROM Table WHERE field LIKE '%searchString%' This: command.CommandText = "SELECT * FROM Table WHERE field LIKE '%?%' command.Parame...more >>

access data in remote SQL server with trusted authority
Posted by jingsheng.zhou NO[at]SPAM gmail.com at 2/23/2005 2:50:32 PM
I have two win2003 servers. One is IIS and the another is SQL server. I can use MyConnection=new SqlConnection("server=SQLServerName;database=myDBName;UID=sa;PWD=mypwd") to access my data. But I can not use MyConnection=new SqlConnection("server=SQLServerName;database=myDBName;Integrated Securi...more >>

open query help
Posted by david.good NO[at]SPAM stramit.com.au at 2/23/2005 2:34:16 PM
Adding numerical field to filters in openquery is as easy as typing the number but I am having major problems using strings. I have tried a few solutions including the usual concantenations but no solution. Is there a simple way of including strings with the filters for a query below, possibly...more >>

orphan recods
Posted by NickName at 2/23/2005 11:21:52 AM
Hi, Say, a database has all the FK constraints created properly, would sql server 2000 save this kind of meta data into sysforeignkeys table? Or it depends on ...? I'm trying to find all the orphen records in a given database via meta data. TIA. ...more >>

user defined functions & default parameters
Posted by vickiyoull NO[at]SPAM hotmail.com at 2/23/2005 11:14:26 AM
Hi, I am trying to call a user defined function(UDF) from a stored proc, using a default parameter in the called UDF (e.g. @bid_price_type int = 0 ). However the calling stored proc complains that the UDF is expecting a 2nd parameter when I only provide the @test parameter value. Are default...more >>

SQL DATEADD function
Posted by abdul_n_khan NO[at]SPAM hotmail.com at 2/23/2005 10:11:11 AM
I need help in T-SQL. I am using DATEADD function and I want to add 6 months to a date. But it does not return me the rusults, which I want e.g. SELECT DATEADD(m,'20040630') returns 20041230 which is logical correct? But I want it to return end of month (i.e. 20041231) Any help in this c...more >>

What's a significant LockTimeout measurment in PERFMON?
Posted by philipyale NO[at]SPAM btopenworld.com at 2/23/2005 7:29:50 AM
Recently, using PERFMON, I've been rather dismayed to find that our application is averaging 3 - 4 lock timeouts per second, and frequently has extended periods of several minutes where this figure reaches the hundreds. Average LockWaits/sec are less than 0.05, and TableLockEscalations...more >>

What's a significant LockTimeout measurment in PERFMON?
Posted by Phil at 2/23/2005 6:02:09 AM
Recently, using PERFMON, I've been rather dismayed to find that our application is averaging 3 - 4 lock timeouts per second, and frequently has extended periods of several minutes where this figure reaches the hundreds. Average LockWaits/sec are less than 0.05, and TableLockEscalations/sec ...more >>

Cannot DTS connect to SQL Server 2005
Posted by Rob Gibson at 2/23/2005 5:51:44 AM
I have installed SQL Server 2005 Beta 2 on my PC. When I try to make a connection to it from the DTS environment, I get following error: ============================================= Could not get server list. (DTS Import/Export Wizard) ============================================= [DBNE...more >>

Date Compare in SQL Server Stored Procedure
Posted by mhk at 2/23/2005 5:20:15 AM
Hi, i have "req_date" column of "datetime" type in Database table besides other columns. From my Web page, i am calling the Stored Procedure with variable parameter "Search_Date" of Varchar(60) type. the value, i am passing to Stored procedure through "Search_Date" is compared to req...more >>

Seek method, table-direct, and sql server2005
Posted by Manuel Lopez at 2/23/2005 1:49:36 AM
From what I've read in the docs, ado.net currently supports opening sql server ce tables in table-direct mode and performing Seek operations on them (using SqlCeDataReader), but not on the full-blown sql server. Is this (will this be) still true with ado.net 2.0 & sql server 2005? ...more >>

Datatype
Posted by c_bowen NO[at]SPAM earthlink.net at 2/22/2005 10:45:17 PM
I am using Visual Studio .NET 2003 with SQL Server 2000. I am trying to insert the date and time into a SQL database by using hour(now). I am having a hard time trying to figure out which datatype to use in SQL to store this value. I have tried using datetime, char, nchar, text and nothing seems...more >>

pass hash (#) table with different structure to stored procedure
Posted by tilak.negi NO[at]SPAM mind-infotech.com at 2/22/2005 10:13:08 PM
Dear Techies, I making one stored procedure, which does some operation based on an interface hash (#) table ---- name #mydata. This stored has two section of code (seperated by parameter value 0 and 1) But hash table #mydata (same name) number/name of columns changes as per call 0 or 1. ...more >>

Group by Problems
Posted by ree32 NO[at]SPAM hotmail.com at 2/22/2005 8:25:04 PM
I know when you are using group by functions you have to include all the columns in the GROUP BY clause. But what I am having problems when using a case statement to determine whether to sum of not a column. eg. SELECT Country, Case WHEN Age<15 THEN Sum(Income) ELSE NULL END AS YouthInco...more >>

list schema's of a sql server
Posted by tomschuring NO[at]SPAM gmail.com at 2/22/2005 6:48:45 PM
hello, what is the sql server 6.5 equivalent for: "select catalog_name from information_schema.schemata" i would like to see a list of available schema's on a server and this seems to work on 7.0 and newer. would i be able to do it with the systables ? i have looked through the content o...more >>

IF (SQL server)
Posted by Markonni at 2/22/2005 5:53:28 PM
How can I make something that in MS Access query looks like this: SELECT IIF([Amount] Is Not Null,Amount,0) AS PayedAmount ... Regards, Markonni ...more >>

Question about SUM and Nulls
Posted by mike at 2/22/2005 5:34:35 PM
I'm doing what I thought was a simple GROUP BY summary of fairly simple data and the my numbers aren't working out Some results are showing up <NULL> when I know the data is in the database I'm no SQL expert, but if I'm summing (SUM) multiple fields and adding them together in my...more >>

I need help with SELECT statement
Posted by siatki at 2/22/2005 4:51:29 PM
hello, At the beginning I would like to describe my very simple table. It is composed of three columns: 'name', 'forename', 'status'. This database stores results of games. The values of column 'status' can be only: 1 for win, 2 for lose,0 for draw. My aim is to get a table which consists als...more >>

SQL Query Help
Posted by cwwilly NO[at]SPAM gmail.com at 2/22/2005 4:47:57 PM
Thank you for taking the time to look at my question. Any help would be much appreciated ! Database: Microsoft SQL Server 2000 Database Structure: 1. tblEmployee a. EmployeeID 2. tblCertification1 a. VisitDate b. CertificationScore1 3. tblCertification2 a. VisitDate...more >>

Auto-increment PK - Use MS or Grow your own ?
Posted by csomberg NO[at]SPAM dwr.com at 2/22/2005 3:39:18 PM
SQL 2000 I thought I would throw this out there for some feedback from others. I'd like to know if you feel using MS auto-increment field is a good solution these days or should one grow their own ? Thanks, Me. ...more >>

Query Analyzer does not see Enterprise manager database and vise versa
Posted by Greg Doherty at 2/22/2005 3:38:05 PM
I am using SQL Server 2000. I have created a new database in Query Analyzer but I cannot see it in Enterprise Manager. I then created a new database in Enterprise Manager, but I can't see it in Query Analyzer. How do I get these applications to see the databases that the other creates? ...more >>

Find Missing data from table
Posted by SQLJunkie at 2/22/2005 2:27:54 PM
Here is an issue that has me stumped for the past few days. I have a table called MerchTran. Among various columns, the relevant columns for this issue are: FileDate datetime , SourceTable varchar(25) SQL statement: SELECT DISTINCT FileDate , SourceTable FROM MerchTran ORDER BY F...more >>

Newbie....Import a DTS Package (.DTS file)
Posted by hharry at 2/22/2005 12:55:59 PM
Hi All, If I have a DTS package file...myPacakge.DTS, how do I import this file to my SQL Server Instance ? Thanks in advance ...more >>

SP To create table
Posted by Michael Jackson at 2/22/2005 12:37:52 PM
I have a stored procedure to create a table. In my program I want the user to name the table to be created, therefore I pass a parameter to the SP for the table name. I cannot get it to work. It creates a table called "@NewTableName". Any ideas? CREATE PROCEDURE dbo.sp_FFProduction_Crea...more >>

Email on insert in a table
Posted by Guju at 2/22/2005 11:48:11 AM
Hi, I wish to use email functionality of sql to send me an email when an insert is performed on a particular table. I know that a proc and may be a trigger is required. Can someone please provide me some hints. Thanks, Guju ...more >>

checking the existance of fields and types
Posted by William Kossack at 2/22/2005 9:34:50 AM
I'm trying to write a program in cold fusion to check the existance of fields and data types according to requirements I was looking at the syscolumns table for some of this information but I've discovered that in my playing (creating and deleting tables) thre are multiple entries for a fie...more >>

T-SQL Cursor Variable..
Posted by hharry at 2/22/2005 9:22:29 AM
Hello All, Is there a T-SQL equivalent of the PL/SQL cursor rowtype datatype ? Thanks in advance ...more >>

tab character
Posted by Johnny at 2/22/2005 7:41:15 AM
what nchar() value equals the tab character. I need to replace it in a string. ...more >>

(newbie) copying rows between tables via notepad
Posted by foldface NO[at]SPAM yahoo.co.uk at 2/22/2005 1:45:15 AM
Hi newbie question I'm sure I have 2 databases on 2 different machines, there is no connection between the 2. What I need is a way of extracting particular rows from particular tables and adding them to another database. The only viable way of doing this is via email for unimportant reason...more >>

Backup - Solution Needed
Posted by RLN at 2/22/2005 1:07:31 AM
hi group My database name : developer day 1. Taken full backup day 2. taken differential backup day 3. taken differential backup day 4. taken differential backup day 5. taken differential backup day 6. taken differential backup finished backups month 1. after one m...more >>


DevelopmentNow Blog