Viewing 15 posts - 31 through 45 (of 54 total)
bitbucket (12/6/2008)
http://support.microsoft.com/kb/154886
for how varchar values are stored. It also contains very simple sample code so that you can test and view the...
December 6, 2008 at 11:20 pm
please forgive me,i didnt ask completely:
i have a table named Gallery
i wanna select some fields from Gallery base on a specific RowNumber
i wanna return a value that show whether this...
November 1, 2008 at 3:45 am
i need to select a record base on a RowNumber,besides i need to check and return a value that shows whethere this record is or is not the last record...
November 1, 2008 at 3:42 am
GilaMonster (11/1/2008)
DECLARE @state BIT
SET @state='0'
;WITH Im AS (
SELECT Id,Name,Tag,ROW_NUMBER() OVER(ORDER BY Name DESC)AS 'RowNumber' FROM Galery ...
November 1, 2008 at 3:28 am
yes,the error is :
Incorrect syntax near the keyword 'IF'. :O(
the Table is this :
CREATE TABLE [dbo].[Galery](
[Id] [int] IDENTITY(1,1) NOT NULL,
[Name] [nchar](50) NOT NULL CONSTRAINT [DF_Galery_Name] DEFAULT (N'~/Images/Gallery/pic.gif'),
[Tag] [nvarchar](200) NULL,
...
November 1, 2008 at 2:59 am
bitbucket (10/18/2008)
What language are your apps written in
Are they web apps
its a windows service writing with C#
October 18, 2008 at 7:22 am
i googled and found xp_cmdshell to run my .exe with parameters.
but when i use this,SQL remain in Executing query batch .. mode!
whats wrong with this ?
DECLARE @Parameters CHAR(30)
SET @Parameters='"calc.exe"'
EXEC master...
October 18, 2008 at 4:32 am
Matt Miller (10/7/2008)
dr_csharp (10/7/2008)
Jason Shadonix (10/7/2008)
You might also need to give that inner query an Alias?SELECT Tab.A,Tab.B FROM (SELECT * FROM Table) Tab
thanks Jason you are right,but why we do...
October 8, 2008 at 4:31 am
Jason Shadonix (10/7/2008)
You might also need to give that inner query an Alias?SELECT Tab.A,Tab.B FROM (SELECT * FROM Table) Tab
thanks Jason you are right,but why we do this ?
i see...
October 7, 2008 at 12:50 pm
Jeff Moden (10/7/2008)
dr_csharp (10/7/2008)
CREATE TRIGGER test ON CallRecorder
FOR INSERT
AS
DECLARE @RecId INT;
DECLARE @BeginTime NVARCHAR(8);
SELECT @RecId=RecId,@BeginTime=BeginTime FROM Inserted
set @BeginTime=substring(@BeginTime,1,3);
Update CallRecorder
...
October 7, 2008 at 8:28 am
thanks jack . i do this :
CREATE TRIGGER test ON CallRecorder
FOR INSERT
AS
DECLARE @RecId INT;
DECLARE @BeginTime NVARCHAR(8);
SELECT @RecId=RecId,@BeginTime=BeginTime FROM Inserted
set @BeginTime=substring(@BeginTime,1,3);
Update CallRecorder
...
October 7, 2008 at 7:33 am
Jack Corbett (10/7/2008)
October 7, 2008 at 7:00 am
GilaMonster (10/6/2008)
October 6, 2008 at 7:32 am
GilaMonster (10/6/2008)
DECLARE @MaxID INTSELECT @MaxID = Max(ID) FROM Customer
which one is better :
i save @@Identity in a field when record insert in Table and i read saved id in...
October 6, 2008 at 6:47 am
consider this table :
CREATE TABLE [dbo].[Customer] (
[Id] [int] IDENTITY (1, 1) NOT NULL ,
[Code] [nvarchar] (5) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL ,
[Name] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL ,
[Family] [nvarchar] (70)...
October 6, 2008 at 6:22 am
Viewing 15 posts - 31 through 45 (of 54 total)