Viewing 15 posts - 6,586 through 6,600 (of 7,187 total)
Your queries don't make sense. They don't specify what update to perform. For example, the second query should read something like this:
update T set myCol = 40
where id = 32...
January 23, 2007 at 9:16 am
You will have to mess with dynamic SQL and fiddly datepart functions. It can be done, but if you want to keep it simple, probably best to use a database...
January 23, 2007 at 9:10 am
Yes, that is the essence of what the indexed view is. See Books Online for more details. Of course the other important thing about it is that it is indexed...
January 23, 2007 at 8:46 am
This should work, although I haven't tested it. I don't know how it'll perform on a large table. I can't think of a way without using dynamic SQL to select...
January 23, 2007 at 8:37 am
That you are asking for every 100th SessionID suggests that your data is ordered in some way. If not, what does "every 100th" mean? And please confirm that you want...
January 23, 2007 at 7:11 am
Oblio
So you have two "unknowns" - the % in the middle, which can be any number of characters, and one single unknown character at the end. The best way of...
January 23, 2007 at 7:02 am
Ron
Look up the DATEADD, DATEDIFF and DATEPART functions.
John
January 23, 2007 at 6:33 am
Michael
I'm assuming that for any given UserId, FirstName And FamilyName will always be the same. If that's the case, your database isn't properly normalised and you should create a separate...
January 23, 2007 at 5:09 am
Just to explain to those who aren't familiar with UK postcodes...
The first part of the postcode can have 2, 3 or 4 characters; the second part always has 3: a...
January 22, 2007 at 9:30 am
What Connection Type are you using? Have a look at this and see if it helps:
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=101249&SiteID=1
John
January 22, 2007 at 8:38 am
Please will you post the two queries if you can, as well as a description of what input/output parameters and global variables you are using.
Thanks
John
January 22, 2007 at 3:59 am
Stewart
That's what I suspected. Please will you post the DDL... you can change the column names if you wish. Some sample data would be helpful, too.
John
January 22, 2007 at 3:19 am
Stewart
That query should produce an error since you're grouping by something that isn't in the select list. Are you doing this in Query Analyzer? Can you post the DDL for...
January 22, 2007 at 2:41 am
Beware, because if you have a stored procedure or other object called TABLENAME, you will still get the "Table Exists" message. One way of being sure is like this:
January 22, 2007 at 2:23 am
You should read in Books Online about BULK INSERT, bcp and DTS, then post again if there's anything you don't understand. We can't give you an example unless you describe...
January 22, 2007 at 1:40 am
Viewing 15 posts - 6,586 through 6,600 (of 7,187 total)