Viewing 15 posts - 3,331 through 3,345 (of 7,187 total)
Read them in as integers, do your arithmetic, then cast as a string. Something like this:
SELECT RIGHT('00' + CAST(1 AS varchar(3)),3)
John
October 20, 2014 at 9:55 am
Keep collecting the data as you are doing, and use a view to show the daily difference. You can use the ROW_NUMBER function to number each row, then join...
October 20, 2014 at 8:57 am
If you can get it down to one instance, yes. There might be reasons why you can't: some applications may not support the version of SQL Server you wish...
October 20, 2014 at 8:53 am
Have you considered consolidating your databases to a smaller number of instances, or even to a single instance?
John
October 20, 2014 at 8:41 am
I thought about using a function but I don't think it will be flexible enough as in certain cases I want to parse 2 or more IDs back into the...
October 20, 2014 at 8:17 am
Yes and no. If the same login exists on both servers, that'll work. But also, if you're a member of GroupA and GroupB, and GroupA has access to...
October 20, 2014 at 6:39 am
Please can we see the table that contains the grouping information?
I think the best way will be to add up and and number the groups in a CTE, then do...
October 20, 2014 at 3:50 am
spaghettidba (10/15/2014)
John Mitchell-245523 (10/15/2014)
October 15, 2014 at 5:41 am
I notice you have at least one duplicate index in your list. It won't make much difference to how quick your query runs, but it will slow down inserts,...
October 15, 2014 at 3:54 am
Abhas
That query isn't syntactically correct. Please will you post the actual query you're running, along with table DDL (in the form of CREATE TABLE statements) and sample data (in...
October 15, 2014 at 3:40 am
I think filegroup restores are for you. You may need to organise your database first so that only the file in question is in the filegroup you're going to...
October 15, 2014 at 3:36 am
You can create a clustered index on the UpdatedDate column. This will cause a logical ordering of the rows on disk which may, for example, be helpful if you...
October 13, 2014 at 9:42 am
That's the kind of thing that SSIS was designed for. If you insist on doing it in a single stored procedure, you can try creating linked servers, or shelling...
October 13, 2014 at 9:08 am
I've done something similar recently, although I was looking for linked server names in stored procedure and view definitions. Here is what I did. It may be more...
October 10, 2014 at 9:42 am
The question assumes that XACT_ABORT is set to OFF. I know that's the default, but it would be worth mentioning in the question or explanation for clarity and completeness.
John
October 9, 2014 at 6:19 am
Viewing 15 posts - 3,331 through 3,345 (of 7,187 total)