Viewing 15 posts - 286 through 300 (of 1,156 total)
You have your case set wrong
It should be
INSERT INTO Criteria (GroupID, CustomFieldID, RelationalOperator, Value)
SELECT g.groupID, cfdn.CustomFieldID,
CASE
...
March 17, 2008 at 7:29 pm
Can you post some sample data and the expected results?
March 17, 2008 at 7:19 pm
Actually you can click on Tool --> --> options --> scripting. From here you can set the default to script does not exists, script indexes, foreign keys etc....
Then when...
March 17, 2008 at 3:44 pm
BCP does not export column names. You would have to use SQLCMD or OSQL to export the column. Keep in mind that if you plan on bulk importing...
March 17, 2008 at 2:53 pm
You can schedule the method I mentioned to you. It performs a bulk operation and will automatically generate the package for you. The package can then be stored...
March 17, 2008 at 1:13 pm
You can also use regular expression functions.
regular expressions function
CREATE FUNCTION dbo.regexReplace
(
@source varchar(5000),
@regexp varchar(1000),
@replace varchar(1000),
@globalReplace bit = 0,
@ignoreCase bit = 0
)
RETURNS varchar(1000) AS
BEGIN
DECLARE @hr integer
DECLARE @objRegExp integer
DECLARE @result varchar(5000)
EXECUTE @hr =...
March 17, 2008 at 1:03 pm
There are multiple ways to accomplish this task. You can use BCP, SQL CMD or SSIS. I would choose SSIS. All you have to do is right-click a...
March 17, 2008 at 12:38 pm
SQL Server 2008 would have this feature out-of-the-box.
its called Change data capture (CDC)
Interesting..
March 17, 2008 at 7:05 am
Adam, in the bottom portion of your SQL you should be able to replace the entire cursor block with:
EXEC sys.sp_MSforeachtable @command1='TRUNCATE TABLE ?'
True, but not if foreign keys exist. ...
March 17, 2008 at 7:03 am
This can be best implemented with either C2 auditing or DML triggers.
It should be mentioned that C2 auditing logs alot of information, maybe for than you need. ...
March 16, 2008 at 9:38 am
He said there are aprox. 10,000, now, though records can be inserted and updated.
March 15, 2008 at 3:26 pm
Just rethinking about the problem here. But another solution would be to use DML triggers. This would fit your requirement and give a near real time replica of...
March 15, 2008 at 11:36 am
Man, thanks for having a good sense of humor. I've done very similar things and found that I can't respond to even the simplest of technical posts...
March 15, 2008 at 10:58 am
The above post was for everyone chiming in on the post that may not know about NULL calculations in SQL, not for you Jack.
Addtionally, this site has a good article.
http://www.sqlservercentral.com/articles/Advanced+Querying/gotchasqlaggregatefunctionsandnull/1947/
March 15, 2008 at 10:17 am
Viewing 15 posts - 286 through 300 (of 1,156 total)