Viewing 15 posts - 211 through 225 (of 272 total)
I am not totally sure what the problem is, can you describe what you want to achieve?
Also be aware that distinct means "return me only rows that have a difference...
January 16, 2009 at 4:47 am
Hi John,
Only something I hit with 2005. Prior to that you coukld do ..
select * from foo order by bah
and then change to..
select bah, * from foo order by...
January 9, 2009 at 10:46 am
Simple answer is you must name the columns explicitly in the select statement.
You can use something like tablename.* (or correlation_name.*) to say all columns from one table, similarly you could...
January 9, 2009 at 3:44 am
Assuming you mean the total length is 5 characters including any embedded spaces then..
select foo from bah where len(foo) = 5
or if the embedded spaces do not count
select foo from...
January 6, 2009 at 10:32 am
Another possible implication of two raid 1s would be if they were the same filegroup, with a massive table that was frequently being scanned. If I remember rightly in that...
December 24, 2008 at 2:19 am
Some things to try -
If there is no possibility that the two queries (either side of the union) can return duplicates you could make it "union all" which may...
December 18, 2008 at 5:33 am
I am not aware of any global setting for this and frankly would not want one. Setting read uncommitted can on occasions be one way to help resolve locking problems,...
November 26, 2008 at 1:12 am
Looks like it should work to me - but can you post the full ddl of both tables - are you sure there is an identiity column on the...
November 25, 2008 at 5:32 am
Do you need a tool - you can do it in SQL?
Assuming a table called images that looks a bit like this:
create table images (
image_id integer identity primary key,
image_name...
November 25, 2008 at 5:24 am
If you chaneg the db option to make it "AutoClose" then you will find messages in the SQl Server log file every tim ethe db get used. This may give...
November 24, 2008 at 5:18 am
Very difficult to give a full answer without knowing a lot more about your data, but it sounds like you ahev got the principles right. If you post the create...
November 21, 2008 at 1:34 am
I suspect there may be some sort of authentication issue causing timeouts while checkinmg permissions. I would check the account dteails the jobs are under, permissions to those accounts, access...
November 21, 2008 at 1:28 am
I have not used the pro edition of sql compare, but have used older versions and it was very good for finding differences between two databases but I would not...
November 19, 2008 at 1:10 am
The concept of linked servers sounds what you need - if you really need to copy all the data across. BOL will describe everything about linked servers.
As for how long...
November 19, 2008 at 1:06 am
Two things to check ..
What is the data type of all columns in the index?
Are the two databases collations the same?
Reason for asking is if the columns are char/varchar etc...
November 18, 2008 at 5:10 am
Viewing 15 posts - 211 through 225 (of 272 total)