Viewing 15 posts - 4,201 through 4,215 (of 13,469 total)
this is typically how i do it.
1. do a full backup, just in case.
2. SELECT the rows that in theory, should be affected...we might get a specific row count...
December 21, 2012 at 8:59 am
Shadab Shah (12/21/2012)
December 21, 2012 at 7:48 am
That is an expected error that you will get used to once you get started with SQL.
object names must be unique, otherwise the system cannot map your queries to the...
December 21, 2012 at 6:55 am
wow, thats going to be tough;
the only thing i could think of was a combination of opc.three's example, and joining it against a list of common suffixes to find potential...
December 21, 2012 at 5:54 am
I've seen that situation where they are using CHAR(160) , which is a fixed width character that *looks* like a space, but isn't a REAL space (CHAR(32))
if you use that,...
December 20, 2012 at 2:29 pm
there's a couple of script contributions:
there's several threads on the same subject as well.
December 20, 2012 at 12:06 pm
garth i could not get a result to work the way you said; we would need something equivilent to this to test with:
With TableA (,col)
AS
(SELECT 1,'1308064*8' UNION ALL
SELECT 2,...
December 20, 2012 at 11:15 am
UPDATE SET [col] = [col]
Seriously? that is the trigger body? updating the column to itself, with referencing the INSERTED virtual table?
Remember we are not in your cube looking...
December 20, 2012 at 6:18 am
Minnu (12/20/2012)
column "Product_Name_Expiry" will be udpated with prouduct_Name : Product_expriry_date.
IDProduct_NameProduct_Expiry_Date ...
December 20, 2012 at 5:51 am
something like this?
note you have to modify the role everytime a proc/function is dropped and created, or new ones added.
CREATE ROLE MyExecProcRole;
CREATE ROLE MyExecFuncRole;
--GRANT EXEC permissions to all SPs and...
December 19, 2012 at 12:47 pm
If the Mayans were so good at predicting the future, wouldn't there still be Mayans left?
December 19, 2012 at 11:18 am
yes exactly...listing the specific columns, which would of course be unique to your table and text files.
for your other question, i don't see any value to fiddling with the data...
December 19, 2012 at 9:27 am
well, one way is to use the delimitedSplit8K function to chop the string into bitesize peices.
from there, you might need to cross apply, modifying the WHERE statement to limit it...
December 19, 2012 at 8:39 am
well it depends on the details Brian;
in situations where the target table does not exactly match the columns (different column order, subset of columns)
you can attack it a different way:...
December 19, 2012 at 8:13 am
BULK INSERT works well, BCP IN,The Import DaTa Wizard or a full blown SSIS package are your options I can think of offhand.
here's a simple example of bulk insert:
CREATE TABLE...
December 19, 2012 at 7:42 am
Viewing 15 posts - 4,201 through 4,215 (of 13,469 total)