Viewing 15 posts - 10,186 through 10,200 (of 13,469 total)
Ray K (12/29/2009)
December 29, 2009 at 10:18 am
in TSQL, you could search for where any string begins by using the CHARINDEX function; it is the equivilent of vb INSTR function, or .NET's string.IndexOf("StringToFind")
if it is greater than...
December 28, 2009 at 10:56 am
i just googled "free system monitoring software" and found lots of stuff;
you want to watch for more than just the SQL server service being up or down; you've also got...
December 28, 2009 at 7:11 am
QML you did not answer any of the questions asking for clarification.
please, please read the comments a bit slower, and try to reply back to us to determine what you...
December 28, 2009 at 6:48 am
everything is working as expected; the user cannot directly insert/update/delete from the tables.
the assumption is that if you grant EXECUTE to a stored procedure, then the procedure can do whatever...
December 28, 2009 at 6:39 am
mahesh when i read BOL, it has this statement:
http://msdn.microsoft.com/en-us/library/ms188354.aspx
what user are you logged in as before you try to execute as 'dom'? are you in as sa or a sysadmin...
December 28, 2009 at 6:29 am
the error message is the clue: you can't select the row_id_no, because it is not part of the subquery in parenthesis.
remember what i said about aliases and parenthesis? that goes...
December 27, 2009 at 8:29 pm
a subselect in parenthesis must have an alias;
formatting helps identiy the problem, too:
SELECT
max(DWT40034_BZL_VAT_TAX.ROW_ID_NO)
from
(
select
DWT40034_BZL_VAT_TAX.INTGRT_CNTRY_CD,
DWT40034_BZL_VAT_TAX.ORD,
...
December 27, 2009 at 8:07 pm
manojkanoi (12/27/2009)
December 27, 2009 at 3:11 pm
ahh, SQL and oracle TIMESTAMPS are not the same thing.
in Oracle, the TIMESTAMP data type is a very granular datetime field.
SQL> SELECT CAST(date1 AS TIMESTAMP) "Date" FROM t;
Date
-----------------------------------------------------
20-JUN-03 04.55.14.000000 PM
26-JUN-03...
December 27, 2009 at 12:40 pm
stating the obvious, do a backup, test this on a development server, ask questions, confirm it is close to what you are after.
--update the whole table
UPDATE transactions
SET matchingid =...
December 27, 2009 at 12:08 pm
mano you are not taking advantage of the power of SQL's set based operations;
you could do your update, to all millions of records, in a single statement....even better, it would...
December 27, 2009 at 11:58 am
as long as you know how the data will be ordered, row_number() function is probably the best solution:
SELECT * FROM
(
SELECT row_number() over (ORDER BY YourColumn) As RW,
* from YourTable
)...
December 26, 2009 at 8:06 am
here you go Roger; a project like this has to use the metadata to determine which columns to query, so using a cursor in this case is fine;
the logic is...
December 26, 2009 at 7:37 am
could it be you do not have a regular backup schedule in place in that location, and that is causing your unnecessary growth?
the ldf is the log file. if your...
December 25, 2009 at 7:51 am
Viewing 15 posts - 10,186 through 10,200 (of 13,469 total)