Viewing 15 posts - 2,236 through 2,250 (of 5,504 total)
STOP!! There is a hidden trap...
What is the data type of the current column employeeno?
If it's any numeric data type (e.g. INT), the update statement will fail.
Before updating a column...
January 3, 2011 at 2:46 pm
koolme_85 (1/3/2011)
so its going to becreate proc myproc
as
(the same select statement that i have posted )
go
is that it ?
Yes. That simple. 😉
January 3, 2011 at 2:12 pm
The question is in the title:
change the following query to storedprocedure
how to change my query to SP
January 3, 2011 at 2:06 pm
Something like
CREATE PROCEDURE NameHere AS
SELECT...
January 3, 2011 at 2:02 pm
hoanglong88i (1/3/2011)
Thank Lutz again, with your solution, now I know how to reference to...
January 3, 2011 at 11:23 am
Edit: original statement partially removed.
However, if the view is defined at SQL Server side, it should work. At least the following code does:
USE tempdb
GO
CREATE TABLE [a/totally silly / TABLE...
January 3, 2011 at 10:14 am
Andy Warren (1/3/2011)
January 3, 2011 at 9:53 am
GilaMonster (1/3/2011)
LutzM (1/1/2011)
You might want to read this article to verify your data types are as efficient as possible.Which article? 😉
Ouch. :blush: Link added. Thanx Gail. (It's the Disk Is...
January 3, 2011 at 6:57 am
There is one additional major concern to bring up (and it has been done frequently already in other articles/threads): data security.
Currently, most companies have a strict regulation who has direct...
January 3, 2011 at 12:56 am
duplicate post. Please reply here
@sqlpassion: please don't start a new thread with the same content shortly after the initial just because you didn't get any immediate reply.
There are several possibile...
January 2, 2011 at 12:18 pm
martin.edward (1/2/2011)
Hey,How can I provide the table creation and sample data scripts ?
Regards,
Just have a look at my previous post... 😉
January 2, 2011 at 9:43 am
"does not work" is a rather vague statement. Can you post the code you're using and the related error message ?
January 2, 2011 at 4:51 am
Here's the solution I came up with.
I'm using the "quirky update" method with safety check as described here. Please follow the link mentioned in that post and read the related...
January 2, 2011 at 4:48 am
Barry,
a very Happy and Healthy New Year!!
January 2, 2011 at 3:31 am
JD,
With reference to your other recent thread you really seem to love the DISTINCT key word, do you? 😉
Due to the names used in that sproc let me ask: is...
January 1, 2011 at 2:53 pm
Viewing 15 posts - 2,236 through 2,250 (of 5,504 total)