Viewing 15 posts - 3,331 through 3,345 (of 7,191 total)
Or more generally, using an outer join:
CREATE TABLE MyProducts (ProdID int, ProdGrp char(7))
INSERT INTO MyProducts VALUES
(11, '*')
,(12, '*')
,(13, 'Group A')
,(14, 'Group B')
,(15, 'Group C')
CREATE TABLE MyGroups (ProdGrp char(6), ProdGrpDesc...
October 21, 2014 at 9:55 am
Try passing in your date in an unambiguous form, such as '20141001'.
John
October 21, 2014 at 9:28 am
Time for you to use your favourite search engine to investigate, then. It's a fully documented stored procedure.
John
October 21, 2014 at 6:57 am
EXEC xp_logininfo 'DomainName\GroupName', 'members'
John
October 21, 2014 at 2:05 am
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
Viewing 15 posts - 3,331 through 3,345 (of 7,191 total)