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
August 2008
all groups > sql server programming > may 2005 > threads for sunday may 8

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

Query Works in QA But not in Code
Posted by Wayne Wengert at 5/8/2005 9:27:20 PM
I am building a query in code (ASP) and when I execute the query, I get the following error: ================================================ Microsoft OLE DB Provider for SQL Server error '80040e37' Invalid object name 'Circuits2005'. ================================================= ...more >>


How do i do ?
Posted by Daniel Groh at 5/8/2005 9:12:01 PM
CREATE PROCEDURE SP_Login ( @Email Varchar(60) = '', @Password Varchar(100) = '' ) As Declare @UserEmail Int Set Nocount On If not exists( Select CdUser From User Where Email = @Email And Password = @Password) Begin Raiserror(13001,18,1) --User not found End it should...more >>

data with apostrophe in it
Posted by tshad at 5/8/2005 8:43:10 PM
How do I add data that has an apostrophe in it? For example, update logon set question='Mother's maiden name' won't work as there is an apostrophe in it. I need to be able to allow apostrophes in some of my fields. Thanks, Tom ...more >>

Update Query Question
Posted by John . at 5/8/2005 7:00:40 PM
I have a the following tables: CREATE TABLE [dbo].[xref] ( [IndustryCd] [varchar] (10) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [From] [int] NULL , [To] [int] NULL ) ON [PRIMARY] GO CREATE TABLE [dbo].[naics] ( [NAICS_Cd] [int] NOT NULL , [NAICS_Adj] [int] NULL , [NAICS_Descr...more >>

maximum number of tables in a query (260) was exceeded
Posted by at 5/8/2005 1:20:47 PM
I am getting the following error message from a view I have created. I would think it was a design issue but it appeared to be working at one time. When it was reopened I received the following error: ----Could not allocate ancillary table for view or function resolution. The maximum numbe...more >>

bogus VM error message with Upgrade Wizard
Posted by Paul Pedersen at 5/8/2005 8:28:53 AM
In All Programs/Microsoft SQL Server - Switch is something called SQL Server Upgrade Wizard. I have no idea what that does, so I thought I'd start it up and see what happens. What happens is that I get an error message saying that my virtual memory is too low, and should be set at the physi...more >>

SQL: INSERT only time in datetime-field
Posted by Mrs. Conni Drejer at 5/8/2005 7:20:02 AM
I have a table to hold information about Start and Stop Time for a typical day for a worker, and I don't want any date in these fields. If I write a SQL-statement like this "UPDATE CalendarProfile SET [Start_Time] = '08:00:00'", SQL-Server writes "01-01-1900 08:00:00', but if I write "08:00:...more >>

Days falling in a certain period
Posted by Stijn Verrept at 5/8/2005 6:41:40 AM
I have 4 dates: declare @PeriodDateBegin smalldatetime declare @PeriodDateEnd smalldatetime declare @BeginDate smalldatetime declare @EndDate smalldatetime Does anyone know a function that can give me the number of days that fall in a period? Example: set @PeriodDateBegin = '2005-01-...more >>



Could not figure out the profiler meaning for SP
Posted by robert at 5/8/2005 1:38:01 AM
I have a SP which is as simple as create procedure SPName @Para -- Query 1 select field1, ... from view1 where field1 = @para -- Query 2 select field1, ... from view2 where field1 = @para Go But the view1 is a little bit complex. It nests 3 sub-views. Usually SP takes 1s to execute....more >>

need help with fairly simple query
Posted by Lisa Pearlson at 5/8/2005 12:00:00 AM
Hi, Imagine table like this: CREATE TABLE SomeTable ( Id INT NOT NULL, Date DATETIME NOT NULL, xxx VARCHAR(20) NULL ) This table can contain multiple items that contain the same stuff DECLARE @now DATETIME SET @now = GETDATE(); INSERT INTO SomeTable(1,@now,'d...more >>

Query help : Better schema this time (I think)
Posted by Jack at 5/8/2005 12:00:00 AM
Hello, This is a followup to the EAV query help. After some changes, I came up with the following schema to get rid of that schema and make it less generic. I still am having trouble getting the output I need.(I don't have a lot of experience with complex (for me) queries.) I was hoping yo...more >>

Execute an Oracle procedure from SQL Server
Posted by at 5/8/2005 12:00:00 AM
It is possible to execute an Oracle stored procedure from SQL Server using DTS. However, is it possible to execute a stored procedure using a linked server (either by using OPENQUERY or a 4-part name (eg. EXEC MyLinkedServer..MyOracleUser.MyOracleProcedure) I haven't been able to successfully...more >>

Get first record of multiple
Posted by Lisa Pearlson at 5/8/2005 12:00:00 AM
Imagine table: CREATE TABLE SomeTable ( SomeId INT, SomeDate INT, Flag BIT, SomeText VARCHAR(100), ) GO DECLARE @now DATETIME SET @now = GETDATE() SET @later = GETDATE() -- a bit later INSERT INTO SomeTable VALUES( 1, @now, 0, 'demo1') INSERT INTO SomeTable VALUES( 1, @late...more >>

Renaming the table
Posted by Leila at 5/8/2005 12:00:00 AM
Hi, I have a table that many SPs use it. I need to rename this table. Is it possible that all SPs or Functions get updated automatically when renaming the table? Thanks in advance, Leila ...more >>

OUTER JOIN on more than two tables
Posted by Edward Diener at 5/8/2005 12:00:00 AM
Two questions: 1) Can an OUTER JOIN, such as a LEFT OUTER JOIN be done on more than two tables and, if so, what is the syntax for it ? I want to do a LEFT OUTER JOIN so that all rows from my left table are selected which meet my where conditions, and where matching rows from more than on...more >>

How to Run Maintenance Plan immediately?
Posted by Bpk. Adi Wira Kusuma at 5/8/2005 12:00:00 AM
How to Run Maintenance Plan immediately? ...more >>

**Error 21776 for login Sa**
Posted by M R at 5/8/2005 12:00:00 AM
Hi I'm working with SQL 2000 and I want to view the properties of Sa login by right clicking on it ,but when I did it ,at first a following message appearred before the properties window, 'Error 21776 : the name dbo was not found in the users collection. if the name is a qualified name use []...more >>


DevelopmentNow Blog