Viewing 15 posts - 8,641 through 8,655 (of 13,469 total)
here's a slight modification chopping up the results into file date,filesize and filename:
SELECT
SUBSTRING(txtResult,1,20) AS FileDate,
CASE
WHEN txtResult LIKE '%<DIR>%'
...
October 4, 2010 at 6:10 am
if the only thing you are after is file size, the DIR command is faster and easier to use to get it; now if you are after information like modified...
October 4, 2010 at 5:48 am
it's kind of hard, but you have to make some assumptions based on the sample data.
i'm assuming:
there are TWO chars after the slash to capture.
there is always a space before...
October 1, 2010 at 12:44 pm
preensheen (10/1/2010)
October 1, 2010 at 9:21 am
no, whatever you paste is whatever you paste....
the GRID, by design, cannot show multiple rows...(it's a grid), so for presentation purposes, it replaces CHAR(13) and CHAR(10) as spaces...but the underlying...
October 1, 2010 at 9:01 am
right click on the servername...properties...the security tab:
change to failed logins only, and i think you are all set.

October 1, 2010 at 8:57 am
in the object explorer on the left, expand your database till you see the table.
right click on that table , and selecte the "Edit Top 200 rows;
you can always change...
October 1, 2010 at 8:09 am
from a similar post a while back, someone cobbled together an enhanced version of sp_who, which has an additional xml column of the command being executed.
try this version, named sp_who3:
/***************************************************************************************************************...
October 1, 2010 at 5:25 am
if you restored a database that came from a different server, this is a known issue;
USERS in the database are mapped to LOGINS in the master database;
the sql user...
October 1, 2010 at 5:19 am
you've got to use a counter or a where statement which preventrs teh same row from being processed.
for example, if your table has an identity column:
dim @start int
dim @end int
SELECT...
October 1, 2010 at 5:12 am
Shekhar this is a very common scenario...table changes are made, and procedures that are dependant on that table's schema may fail;
I like to use this cursor *gasp* below, which...
September 30, 2010 at 5:48 am
sc-w (9/30/2010)
Thank you for your help but the answer that i needed was this so i help it helps someone else.
alter table yourtable
add autonumber int identity(1,1)
go
yes that works, but...
September 30, 2010 at 4:30 am
not sure by what you mean as a "virtual field"
are you talking about a column in a view, which does not exist in the underlying table?
September 30, 2010 at 4:21 am
yes you can, the syntax is the same as when you select something based on other data, just make sure the column name is assigned;
ColumnName = [calculation,case statement, formula,etc]
or
...
September 30, 2010 at 4:13 am
another option is to use the SSMS GUI and design the table;
if you add the new column, and make sure you select that it has the identity property, the GUI...
September 30, 2010 at 4:04 am
Viewing 15 posts - 8,641 through 8,655 (of 13,469 total)