all groups > sql server programming > january 2005 > threads for sunday january 16
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
UNIQUE Constraint
Posted by AKG at 1/16/2005 11:25:01 PM
Hi,
I need to a column for Uniqueness before adding a record and return result
to calling program using a stored procedure.
Here is my schema:
CREATE TABLE [dbo].[Objects] (
[ObjectID] [int] IDENTITY (1, 1) NOT NULL ,
[ObjectTitle] [varchar] (100) NULL ,
[ObjectType] [varchar] (100)... more >>
Deleting and Logging records in Self Joining Table
Posted by AKG at 1/16/2005 10:25:02 PM
Hi Everyone,
I'm having problem deleting as well as logging the records in a self
joining table (Adjacency List Model). Here is my schema:
CREATE TABLE [dbo].[Objects] (
[ObjectID] [int] IDENTITY (1, 1) NOT NULL ,
[ObjectTitle] [varchar] (100) NULL ,
[ObjectType] [varchar] (100) NULL... more >>
Query Builder Tool
Posted by DavidM at 1/16/2005 7:50:04 PM
Hello -- does anyone know of any good tools to create queries for SQL
Server? I'm currently using Query Analzyer, but would like something a bit
more QUI oriented similar to what Access has -- where I can insert tables
and drag columns, etc.
Any help would be appreciated.
... more >>
Queries with cursors can't be executed back to back
Posted by shop NO[at]SPAM pacifictabla.com at 1/16/2005 6:25:15 PM
Hi:
I have two queries shown below. They both use cursors created from the
same table (but with completely different data), and they both write to
the same table. Problem is, when I run them back to back in Query
Analyzer, the first one will execute and insert rows in the
"CallByCallYesterday... more >>
Building datasource string
Posted by Alexander Szigetvary at 1/16/2005 4:40:13 PM
Hi NG!
I want to use the following:
OPENROWSET('Microsoft.JET.OLEDB.4.0',
'Excel 8.0;Database=C:\TEMP\file1.xls',
'SELECT * FROM [Sheet1$]')
Is the a way to replace c:\temp\file1.xls with a parameter? Like
create procedure test @file varchar(200)
as
OPENROWSET('Microsoft.JET.OLEDB... more >>
Date and not DateTime
Posted by Tom at 1/16/2005 2:48:21 PM
Hi
How do i display the Date and only the Date working with DatePart?
ch Tom
... more >>
SQL insert. grab autonumber associated with the insert
Posted by Dean g at 1/16/2005 11:35:00 AM
hi all,
Basically when i insert a new item into my database an automatic
itemid is created. I need to somehow grab the itemid created and use it
in the next statement. i.e
insert into item(beer) values ('stella')
'this now stores stella with an automatic number say
itemid... more >>
Date and Time Question
Posted by Gassy at 1/16/2005 3:27:02 AM
I have two columns that store the date and time. The first stores the date
as an eight character string in the format YYYYMMDD and the second stores the
time as a six character string in the format HHMMSS. How do i combine the
two to give me a single date and time value that displays as a tw... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
|