Viewing 15 posts - 151 through 165 (of 541 total)
mySQL is definitely more primitive, but all the basic functionality is there. Tables, views, procedures....
The native interface is much more primitive that QA and EM; really just a command line...
March 25, 2005 at 2:04 pm
You cannot do this in SQL...you need to have middleware that converts the PDF into a binary object, which can then be stored in SQL. Usually you'll use a filestream...
March 24, 2005 at 6:43 pm
This should definitely be handled in the GUI, but something like this may work (although it doesn't handle spaces)
create function dbo.string_wrap(@String varchar(8000), @WrapInterval int)
returns varchar(8000)
as
begin
declare @NewString varchar(8000)
While @String <> ''
BEGIN
select...
March 24, 2005 at 6:37 pm
"The comment about registering the server as "Local" to ensure portability tweaks my interest. I'm wondering how you register a named instance as "Local"..."
By default a named instance can be referred...
March 24, 2005 at 1:06 pm
Yeah, this is some basic functionality that should be in SQL2K, but isn't.
you can get the creationdate, though, although this isn't going to help with "alter proc" commands.
-------------------------------------------------------------------------------
select Name, crdate
from...
March 22, 2005 at 7:19 pm
There is an undocumented extended proc that does this:
exec master..xp_dirtree 'c:\', 2
The 2nd variable sets the "depth" the tree is navigated....
cl
PS: Some form of "exec master..xp_cmdshell 'tree c:\Snapshots'" may be...
March 22, 2005 at 6:57 pm
"However, as long as you don't go beyond 4,000 characters total (including WITH ENCRYPTION),"
You can go to 8000 characters if you use varchar instead of nvarchar. If you concatenate system...
March 22, 2005 at 6:53 pm
Or a homegrown version....
ALTER Proc cmd_GetDIR @Dir varchar(255)
as
set nocount on
declare @cmd varchar(275),
@FileName varchar(255)
set @cmd = 'dir "' + @dir + '" /A-D /B'
exec master.dbo.xp_cmdshell @cmd
set nocount off
GO
SET QUOTED_IDENTIFIER OFF
GO
SET ANSI_NULLS...
March 22, 2005 at 12:38 pm
"3. Add some logging (or MessageBox calls) of your own"
Actually, mxgbox calls could cause the problem described. a msgbox call that has an "OK" button is going to stall your...
March 21, 2005 at 1:18 pm
You can have ntext input variables to procedures, and that should be all you need. Note that you can't declare ntext variables at private (internal to the procedure), they must...
March 21, 2005 at 1:14 pm
Maybe the numbers guy did some statistics on a bunch of sites, then determined what features where shared by most of the news sites. That could lead to a rule...
March 21, 2005 at 12:37 pm
You can also create a view one the table that excludes the indentity column, then insert from the view back into the table (using select *).
Of course, as PW pointed...
March 18, 2005 at 12:23 pm
Of course the media wants him gone! News published by consumers for consumers directly threatens the centralized (hierarchal) model the media depends on to make a profit. Now is not...
March 17, 2005 at 12:26 pm
Good article, but I'd have to disagree with the following:
"Non-Clustered indexes are better for singleton and individual row lookups. "
Non-Clustered indexes really aren't any "better", they costs virtually the same (an...
March 16, 2005 at 1:23 pm
ignore the ATOM rules at your own risk...they are not arbitrary and were created for good reason.
-----------------------------------------------------------------------------------------
if object_ID('tempdb..#Person') is not null drop table #Person
create table #Person
(
PersonID int identity not...
March 15, 2005 at 6:18 pm
Viewing 15 posts - 151 through 165 (of 541 total)