Viewing 15 posts - 1,786 through 1,800 (of 5,394 total)
bcp AdventureWorks.production.Product out c:\temp\product.dmp -n -S. -T
The above command copies the table "Production.product" from database AdventureWorks in the native file c:\temp\product.dmp.
March 6, 2012 at 5:10 am
Other than SSIS, you could use BCP with the native format.
March 6, 2012 at 4:46 am
The important thing is that the datetime column stores the right value.
To change the way it displays on the report, try changing the report field.
March 6, 2012 at 4:44 am
I would check the execution plan on the Oracle side and see if some index can support this query.
March 6, 2012 at 4:29 am
The format can be applied to strings only, not to datetime fields.
Try using CONVERT(varchar(50), someDateTimeExpression, 104).
Be aware that formatting dates is something that belongs to the presentation layer and should...
March 6, 2012 at 4:28 am
Functions cannot be recompiled, because their plans are not cached.
The statements that call the functions can get cached, but not the function's plan itself.
March 6, 2012 at 4:23 am
Use a split function: http://www.sqlservercentral.com/articles/Tally+Table/72993/
March 6, 2012 at 1:51 am
The ON UPDATE clause is a proprietary MySQL syntax to automatically update a column to the current timestamp whenever the row is updated.
You can do that in SQLServer with a...
March 6, 2012 at 1:49 am
I don't think this will get too slow, even on a big input.
Anyway, I can't think of any other efficient way to generate that prefix.
March 6, 2012 at 1:33 am
While I heartedly agree with every word Johan wrote, let's see if this can get you started:
DECLARE @results TABLE (
TABLE_NAME sysname,
TOTAL_COUNT int,
COLUMN_NAME sysname,
DISTINCT_COUNT int
);
INSERT @results
EXEC sp_MsForEachTable '
DECLARE @q...
March 5, 2012 at 10:38 am
Welsh Corgi (3/5/2012)
March 5, 2012 at 9:56 am
This means that your instance is using all the memory you reserved to it.
Target server memory = Total amount of memory in KB that the server can consume.
Total server memory...
March 5, 2012 at 9:43 am
Not sure what you would like the script to do.
All columns that contain unique values?
All columns in UNIQUE indexes?
Can you clarify please?
March 5, 2012 at 9:04 am
valeryk2000 (3/5/2012)
Naive question from developer (not administrator!):Is there stored procedure(s) that return(s):
1) overall disk space allocated to my server
2) current used/available memory size?
Thanks
1) Depends on what you want to...
March 5, 2012 at 8:48 am
There's no problem, you can do it.
What exactly would you like to know?
March 5, 2012 at 7:33 am
Viewing 15 posts - 1,786 through 1,800 (of 5,394 total)