Viewing 15 posts - 16 through 30 (of 49 total)
I meant like this not with the update statement:
EXEC('
CREATE VIEW dbo.vGph
WITH SCHEMABINDING
AS
O.OpportunityID as Opp_Code,
...
April 27, 2010 at 9:37 am
Grant Fritchey (4/26/2010)
April 27, 2010 at 8:45 am
we don't have primary key and foreign key relation ship on this database.
Create Table dbo.tOpp
(
OppID int,
editUserID int,
customerid int ,
partid int
)
insert into dbo.tOpp (oppid,edituserid,customerid,partid) Values(1,2,a01,Swjji2123)
insert into dbo.tOpp (oppid,edituserid,customerid,partid) Values(2,3,a02,Swjj456)
insert into...
April 26, 2010 at 6:26 pm
I have updated the view ,but it is giving me error:
Msg 4406, Level 16, State 1, Line 1
Update or insert of view or function 'dbo.vGmopph' failed because it contains a...
April 26, 2010 at 2:49 pm
Thanks for the replies and suggestions.
April 26, 2010 at 1:23 pm
Grant Fritchey (4/26/2010)
Are you attempting to dynamically create a view using values selected from the database?
Or, are you attempting to create default values for a view, like this:
SELECT 'Dude'...
April 26, 2010 at 1:11 pm
I can't join the tables because there are no reference columns.
i am attaching the code below:
when i try to create the procedure i get the following error:
Incorrect syntax near...
April 26, 2010 at 11:48 am
Well i am trying to create a view in which there are two variables @a and @b which will be coming from date table ,now how can i create...
April 26, 2010 at 11:10 am
datepart() function would do it
I am Updating the table in a cursor which is in stored procedure (developed by someone).
here the table B is used as cursor which...
April 12, 2010 at 8:33 am
I recommend that you use the Search feature on this site before you post in the future.
http://www.sqlservercentral.com/articles/Date+Manipulation/69694/
I did search the site and found this article but got...
April 9, 2010 at 8:20 am
This is not related to scheduling.but can anyone tell me how to get start date of the month too.
Thank you
April 9, 2010 at 6:10 am
I am sorry for the late reply...
Anyway, i have replaced the cursors with while loop .
here you go ,
Create procedure procedurename
(
@columnname int,
)
as
Declare @column1ID int;
Declare @sql nvarchar(200);
Declare...
March 22, 2010 at 2:00 pm
Set @UserToTerritoryID = (select UserToTerritoryID from dbo.tUserToTerritory where UserID=@UserID)
i have used select instead of set like and called the variable in a procedure
select @usertoterritoryid=usertoterritoryid
from tusertoterritory
where userid=@userid
March 11, 2010 at 12:47 pm
I don't know i need to look in google or some articles.
March 5, 2010 at 11:30 am
I have done it by creating cursors inside a cursor..
i got it.
March 4, 2010 at 1:06 pm
Viewing 15 posts - 16 through 30 (of 49 total)