Viewing 15 posts - 961 through 975 (of 1,409 total)
No need to add an (extra) row_number, because there is allready a rownumber defined and only the maximum rownumber is needed in the result
select
#abc.*
from #Abc
inner join
(select ID, MAX(rownum) as rownum...
July 8, 2013 at 4:15 am
Allthough the SQL Agent service is installed with SQL Express, it is not possible to start it. The SQL Express version doesn't include (a working) SQL Agent.
If you want to...
July 8, 2013 at 1:55 am
mJai (7/7/2013)
I would like to have a backup of the SQL system databases (the files themselves) not the SQL backup.
Why would you want a copy of the files themselves?...
July 8, 2013 at 1:51 am
Does the account of the user has enough permissions to login the SQL instance and on the database(s)? Take a look in the SQL Logging and determine the "state" and...
July 8, 2013 at 12:09 am
When you put a # sign in front of the table name, the table will be created in [tempdb] database. This table will be only available within your current session...
July 5, 2013 at 6:55 am
See the code below. I have stated remarks inbetween the code to explain the different actions.
CREATE TABLE users (
users_id VARCHAR(100) PRIMARY KEY
, username VARCHAR(100)
, password VARCHAR(100)
, designation VARCHAR(10)
)
CREATE TABLE travel_request...
July 5, 2013 at 5:49 am
raghuldrag (7/5/2013)
but i ve many items there so how to do that?
Instead of INSERTing a single row where the values are hard-coded, you can also INSERT multiple rows using a...
July 5, 2013 at 1:22 am
If the destination database is created upon running your transfer, then there is another possibility. You can create a backup of the complete source database and restore this as the...
July 5, 2013 at 1:08 am
gary1 (7/4/2013)
So in the @filename, I'm giving the log backup path as @filename=''Z:\Backups\VS1$ABCINS1\WSS_Content_DB1\LOG''
That is not what you have to do. You are changing the variable part into a hard-coded string....
July 4, 2013 at 1:36 pm
chris.miller1 (7/4/2013)
A full backup does not break log chains (only a log backup...
July 4, 2013 at 4:11 am
Just execute a restore command with the RECOVERY option.
RESTORE DATABASE [{databasename}] WITH RECOVERY
July 4, 2013 at 3:20 am
In your previous post http://www.sqlservercentral.com/Forums/Topic1469296-392-1.aspx I gave you allready a sample you can use to insert values into a table that has a foreign key relation to another table. This...
July 4, 2013 at 2:44 am
Of course I can't speak for anybody else, but from my experience it depends on the kind of DBA and the kind of company.
The larger the company is and/or the...
July 4, 2013 at 12:40 am
I'm sorry, due to too little time on my hands I didn't generate the correct code and didn't test this in my own environment. Today I'm able to give you...
July 4, 2013 at 12:16 am
I noticed an apostrof to little!
You'll need to add an extra apostrof after the text stats=10
I've edited the post above
July 3, 2013 at 12:11 am
Viewing 15 posts - 961 through 975 (of 1,409 total)