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 > july 2003 > threads for friday july 11

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

ASP enterprise manager ?
Posted by Jurjen de Groot at 7/11/2003 10:28:12 PM
Has anyone tried the ASP.NET Enterprise Manager ? I've installed it but after starting up it produces errors, I've started it by using http://localhost/ASP-ent-man/ and also by using http://localhost/ASP-ent-man/app/ but they both throw an exception. I've even copied the bin directory into the a...more >>


Count problem
Posted by jgrenier95 NO[at]SPAM hotmail.com at 7/11/2003 9:12:10 PM
Hi, I have a problem counting the occurence of a number within 3 spefic columns for one table. What I want to do is to count the number of occurence of a number (60 for example) for each of the three columns starting by row*. I'm able to count it seperatly but can't find the correct way to ...more >>

Country table and International Dialing Codes
Posted by Scott A. Keen at 7/11/2003 7:18:28 PM
Hi, Anyone have a table of Countries, with their respective international dialing codes? Or, a link to such a table would be great. Thanks, Scott ...more >>

Filtering
Posted by Brad M. at 7/11/2003 6:13:01 PM
Lets say I have a privilege structure organized by number: 1 - Administrator 2 - Office 3 - Supervisor 4 - Field Operator 5 - Assistant Operator Levels 1, 2, and 3 have the ability to add new employees to the system. However, when adding these new employees, I don't want them to have the ...more >>

What is the difference with or without ON [PRIMARY]
Posted by Andreas Klemt at 7/11/2003 6:08:48 PM
Hello what is the difference? Which one should I use? a) CREATE UNIQUE INDEX [uniqueKey] ON [dbo].[companies] ([co_loginname], [groupid]) WITH DROP_EXISTING ON [PRIMARY] b) CREATE UNIQUE INDEX [uniqueKey] ON [dbo].[companies] ([co_loginname], [groupid]) WITH DROP_EXISTI...more >>

Break all connections
Posted by Mircea Berghia at 7/11/2003 5:38:39 PM
Hi , How can I break up all sql connections? I need this in order to restore a database after that. Thanks. ...more >>

rollback update
Posted by RP at 7/11/2003 5:25:47 PM
Hello all, I want to be able to not update a row in a table if an existing flag has been set in one of the columns. What would be the most efficient/elegant way to perform this? 1. Check for column value in stored proc and only if not set then do update. 2. Write a trigger which checks column ...more >>

Insert With Identiy
Posted by Kevin Munro at 7/11/2003 4:55:40 PM
Hello, if I do an INSERT INTO based on a SELECT with an ORDER BY can I be 100% sure that the records entered will have an incremental key on the identity column if I set one up correctly? It looks like this is going to work but something about it gives me a bad feeling! Thanks, Kevin. ...more >>



Thanks Works now.
Posted by Grant Harmeyer at 7/11/2003 4:33:34 PM
Thanks for the help guys. CELKO, sorry if all that was elementary. I'm new to this. Like I mentioned this was imported from Access so I didn't bother changing the table and field names from the Leysinski scheme. Sorry, I'm new to SQL Server (and to db design for that matter), but I will read ISO-...more >>

Select Question
Posted by Largo SQL Tools at 7/11/2003 4:21:53 PM
I have the following simple Select statement which produces an error when I attempt to save it as part of a stored proc. Select dbo.Customer_CalculateAgedBalance as AgedBalance From Invoices Where AgedBalance > 1000 Note: dbo.Customer_CalculateAgedBalance is a UDF. It produces an error b...more >>

ERR: OLE/DB provider returned message: Timeout expired
Posted by CT at 7/11/2003 3:59:32 PM
Hello, I'm receiving the following error. This error occurs only when the stored procedure is executed from a remote server, but runs fine when executed on the source server. The error message occurs after a ten minute duration and fails on the BCP OUT. I have checked the linked server proper...more >>

SQL7 Views and INSERT
Posted by Mike Brooks at 7/11/2003 3:49:38 PM
A pretty simple question. We are using SQL7 and 2000 in a LARGE mixed server environment, so I am pretty much stuck using "standard" SQL7. I created a new table from three exsiting tables that contained "basicly" the same information, the main difference being each table was specific to a ...more >>

(Stored Procedures) Can't get one table to move contents to another
Posted by Alexander Risøy at 7/11/2003 3:20:13 PM
Hi, ERROR (at execution): "Disallowed implicit conversion from data type datetime to data type tinyint, table "xyz.dbo.tmpTrenddata', column 'xyz'. Use the CONVERT function to run this query." PURPOSE: To get one table (current batch) to copy its contents (only some rows with a specific b...more >>

Just a quick SP ? regarding the LIKE SQL keyword
Posted by Grant Harmeyer at 7/11/2003 3:06:57 PM
Anyone have any ideas why this doesn't return any values? This is an SP that was constructed from a Query in an Access database that was imported into SQL2000. I re-created the query in a stored proc, and this is the first time I have used the LIKE keyword in SQL server and it doesn't seem to wor...more >>

query problem
Posted by He Sha at 7/11/2003 3:06:16 PM
Hi all, There is a table called SALES with a single field called PRODID. An entry is made into this everytime there is a sale. Doing a SELECT TOP 5 COUNT(*) C, PRODID FROM SALES GROUP BY PRODID ORDER BY C DESC gives me the list of top 5 selling products. In another table PRODUCTS, there a...more >>

merge record
Posted by Guogang at 7/11/2003 2:55:38 PM
When new data come in, it may be a brand new record, or an update of old record. So, I have to check the data, and choose either INSERT or UPDATE. Is there any SQL command that is similar to MERGE in Oracle 9i, so that only one statement can do both? Thanks, Guogang ...more >>

Select Into and Trigger on Destination table....
Posted by Rog at 7/11/2003 2:27:50 PM
I am running SQL Server 2000 Will trigger happen on each insert when doing a select into? From what I am finding out it doesn't. I just tried this and in a trigger on the destination table get a record count > 1 in the inserted table when doing a select into and the select into has mo...more >>

Partitioned View Question
Posted by jkelly NO[at]SPAM taltrade.com at 7/11/2003 2:18:04 PM
I have a partitioned view on Orders data...there are twelve orders tables...one for each month of the year...the partitioning is done on the order date column. Everything works fine when my query contains an order date...the performance is excellent. If I try to run a query using only the Order ...more >>

calculate the time
Posted by Frank Dulk at 7/11/2003 2:09:02 PM
Personal, necessary to do a select that contains for NAME, if the name has more than a connection I want to catch the total time of those connections in the format hh:mm:ss, the format of the field is DATETIME and I have a field with the beginning and the end of the connection. I am getting ...more >>

Best way to filter?
Posted by Jay at 7/11/2003 1:31:53 PM
Lets say we have two tables (1) VIPCustomers and (2) Invoices with the usual data. I have the following valid statement: SELECT A.* FROM Invoices A INNER JOIN VIPCustomers B ON A.FirstName = B.FirstName AND A.LastName = B.LastName Q. How would I do the same using the "IN" clause ...more >>

ActiveX control for copying file in DTS
Posted by Patrick at 7/11/2003 1:26:12 PM
Hi Freinds, I need to copy a file from: \\serverone\folder\myfile.txt to \\servertwo\folder\myfile.txt where \\servertwo is my sql server and running DTS package. How can I do it? Any script? Thanks in advance, Pat ...more >>

Display datetime value as date only
Posted by Dale Fye at 7/11/2003 1:07:57 PM
How do I convert a value that contains date and time values to the date alone? In Access, I'd just use the DateValue() function. -- HTH Dale Fye ...more >>

error: String or binary data would be truncated.
Posted by Scott A. Keen at 7/11/2003 12:20:45 PM
I'm trying to fix the fax numbers in our contact table to have a "1-" in front of the number from: 800-555-1212 to: 1-800-555-1212 Here's the code I'm trying to exit in the SQL Query Analyzer: update contact set businessfax = '1-' + businessfax where left(businessfax,1) <> '1' and ...more >>

Cleaning Data for Load
Posted by Dan Allen at 7/11/2003 11:30:01 AM
Hello everyone, I need to load a comma-delimited text file to a SQL Server 2000 table every day. I have no problem loading the data, provided the data is 'clean.' However, the load fails on little things, like a quotation mark embedded within a string, or a non-date value in a date fi...more >>

select top question
Posted by Samuel Nadeau at 7/11/2003 11:25:25 AM
Hi, Here's what I'm trying to do : select * from tableA + select * from tableB where tableB.field1 = tableA.field1 + select top1 from tableC where tableC.field1 = tableA.field1 Is it possible ? how ? Thanks a lot. Sam ...more >>

How to trace xid of X/open Transaction
Posted by sharad at 7/11/2003 11:16:09 AM
Hi , I am quite new in MS SQL and does not know about trace facility available with MS SQL SERVER. I am using MS SQL SERVER as resource manager which is in turn used by our transaction manager and I am using ODBC as programming language I had turned up connection attribute SQL_COPT_SS_ENLIST_I...more >>

newbie question : Mid()?
Posted by news.public.microsoft.com at 7/11/2003 10:54:16 AM
Hi! Newbie question here. In access, you could use the Mid() function in a SELECT statement to return only a substring. How can I achieve the same result when building a view in SQL Server? I used something in the likes of: SELECT MID(table.Code, 1, 2) & " " & MID(table.Code, 3, 2) AS Fo...more >>

Data Junction?
Posted by Bob Castleman at 7/11/2003 10:14:38 AM
Anybody ever use Data Junction or other third party tools for moving data between different database formats? My reason for asking is that in the next 12 months we are presumably integrating our application into an corporate scale enterprise version. Our current customers tend to be less than 20 ...more >>

Text output - useless option?
Posted by toa at 7/11/2003 9:52:58 AM
Hi! I'm trying to retrieve a 'text' data column from a table, and return it in a text data type OUTPUT parameter in my stored procedure. However, no matter how I try, I cannot get T-Sql to assign the text value to the parameter. I've also come across a couple of postings on the web stating tha...more >>

Updating an 'archive' database
Posted by David Taylor at 7/11/2003 9:33:06 AM
I have a VB app that used Access locally and a Sybase server to "archive" the local records. I am now converting it to using SQL Server/Desktop Engine locally and SQL Server for the archive. The local database contains a field for storing the rec_id (identity) field from the archive data...more >>

Problem creating objects not as dbo
Posted by Philip at 7/11/2003 9:28:30 AM
I have a problem with people logging on as one user, but sql server keeps changing the owner to dbo. Sometimes the owner name will be their loggin account and sometimes it will be dbo. Is there anyway to stop dbo from becoming the owner, it is really fouling things up. There are only two u...more >>

Accessing an alternate SQL Server within a proc
Posted by rebam at 7/11/2003 8:25:06 AM
Is it possible to access a database on one SQL server from a stored proc on another SQL server? I'm sure there must be a way, but I've never needed to do it before and I can't seem to find a reference to it in books online. Thanks!...more >>

help with sp_who
Posted by Ricky at 7/11/2003 7:34:25 AM
I want to get the user login name and host name for any user who is accesing the databases thru enterprise manager. I found out I can execute sp_who with @@spid as parameter and I get back result as a select statement result. I want to know how can I concatenate loginname and hostname ...more >>

Case Sensitive
Posted by amit at 7/11/2003 4:49:05 AM
I did the following: 1. create table amit (name varchar(10) not null Primary key) 2. insert into amit values ('a') 3. select * from amit 4. insert into amit values ('A') When I fired the insert statement as in 4th step, i got 'Violation of primary key constraint.' Can anyone tell me...more >>

HTTP access *FROM* SQL sp
Posted by Oded Rotem at 7/11/2003 4:28:38 AM
Hi, I have a remote Web server from which I want to retrieve data - from inside a SQL 2K stored procedure. I can do it with: sp_OACreate 'MSXML2.ServerXMLHTTP', @objHTTP OUTPUT sp_OAMethod @objHTTP, 'open', NULL, 'GET', @URL sp_OAMethod @objHTTP, 'send', NULL etc. However, I'm not ...more >>

=> Recordset value in ADO
Posted by Rhonda Fischer at 7/11/2003 4:19:55 AM
Hello, I have created a recordset in ADO and would like to perform two different operations dependant on if the recordset contains one or greater than one record. However I seem only to receive the .Recordset value of -1, disregardless of how many records are contained in the cursor. How ca...more >>

date range query
Posted by shau at 7/11/2003 3:20:38 AM
Hi I just need to pull up a query which will bring up orders between a specified date range say jan 2003/ july 2002 and from this I have to pull up values that customers have not purchased say Tvs or radios how would I go about it thankyou...more >>

Referential Integrity
Posted by Paulo Weiler at 7/11/2003 3:01:34 AM
I've got a CONTACTS table that is used to store different types of contacts and therefore relates to many different tables (CUSTOMERS, SITES,etc). I can EITHER keep a relationship with each of this tables, creating columns at the CONTACTS table to store each foreign key, OR I can keep two ...more >>

Help with linked server qry (error doing delete!)
Posted by Philip at 7/11/2003 1:08:48 AM
Hi all, We are trying to insert rows from one table on an application db server into a destination table on a linked server. First we do a delete of matching rows, then an insert. But we get this error: Could not open table '"navoutboundcis"."dbo"."archivenav"' from OLE DB provider '...more >>


DevelopmentNow Blog