Viewing 15 posts - 1 through 15 (of 32 total)
Hi,
In my table, I have a date column but it is of type Varchar (Max). I know it and I want to keep the datatype for the table like this....
July 27, 2010 at 1:54 am
Hi,
Need help with converting from character string to datetime.
I used the following code:
WHERE ((convert(datetime,TEI.Cert_Date,101) > convert(datetime,MAL.Cert_Date,101)) OR MAL.Cert_Date IS NULL)
The above code fails to do conversion...
July 27, 2010 at 12:34 am
Hi,
Just tested your code. It works fine now. But I dont understand, because the only difference is in the way you declared the table. Now you creating a table with...
July 26, 2010 at 7:26 pm
Hi,
I have also run your code, with the Output Clause. I get the following error
Msg 4104, Level 16, State 1, Procedure stored_proc2, Line 50
The multi-part identifier "Temp_Event_Import.Cert_Status" could not be...
July 26, 2010 at 5:19 am
Hey,
Thanks for the code. But I knew Join gives you the query...The reason I used my codes is because I want to set something in one table to a value...
July 26, 2010 at 5:13 am
Hi,
I am using the Output clause, the thing is I can't put a Output clause here. I just want to see which rows have been updated. Tried before the Where...
July 26, 2010 at 4:33 am
Hey,
If I want to use the OUTPUT clause, does this mean I will have to create a separate table, where all the updated/inserted/deleted rows will be entered? If so then,...
July 25, 2010 at 8:46 pm
The sub-query is the bit between the braces, the sub-query in itself is fine and valid, its because we are using an operator that expects comparison against a constant rather...
July 22, 2010 at 11:21 pm
Hey,
Also can you tell me if there is a way to check how many rows and which one have been either updated or newly entered to the MAL,...
July 22, 2010 at 7:30 pm
INSERT INTO [Tasnim].[dbo].[Master_Application_List]
([AppName]
,[AppVer]
...
July 22, 2010 at 2:53 am
USE [Tasnim]
GO
/****** Object: Table [dbo].[Master_Application_List] Script Date: 07/22/2010 16:35:21 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[Master_Application_List](
[AppName] [varchar](max) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[AppVer] [varchar](max) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[AIT_ID]...
July 22, 2010 at 2:36 am
Hi Paul,
The tables were created manually. Only AppID column was created using code as it was declared as int primary key identity in Master_Application_List table. App_ID declared as foreign key...
July 21, 2010 at 11:21 pm
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
go
ALTER PROCEDURE [dbo].[stored_proc2]
-- Add the parameters for the stored procedure here
AS
BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SET...
July 20, 2010 at 11:16 pm
Viewing 15 posts - 1 through 15 (of 32 total)