Forum Replies Created

Viewing 15 posts - 886 through 900 (of 964 total)

  • RE: CLR context does not revert

    First, make sure that a valid Login is the owner of the database. For instance, in my environment, I belong to a DBA Active Directory group which is a...

  • RE: Creating CLR assemblies with VS 2008

    To keep your CLR Assembly scalable, you might consider using a Enum of acceptable file types. Then your procedure could validate that the filetype provided is in the acceptable...

  • RE: Multiple Server Queries with SSMS 2008

    The multi server query is actually executed as separate batches on each server, so any statements being run are still batch scoped which means they will complete inside their respective...

  • RE: Creating CLR assemblies with VS 2008

    Dave (8/13/2008)


    I am trying to write a C# function that I can call via the CLR from my stored proc to delete all the files in a directory.

    This statement is...

  • RE: Risk Of Enabling CLR

    You can try to add the -g384 or -g512 startup parameter to see if it is a memory leak causing the problems. I have one CLR object that interacts...

  • RE: Risk Of Enabling CLR

    Thomas LaRock (8/18/2008)


    hi denby,

    we try to limit the use of CLR here, simply because it does not seem to be necessary. however, one caveat that i have seen has to...

  • RE: Creating CLR assemblies with VS 2008

    Did you change the safety level of the Assembly on the Deploy tab to External_Access? You can check this from SQL Management Studio by expanding the database, Programability, Assemblies,...

  • RE: Creating CLR assemblies with VS 2008

    It will be in the projects solution folder in the bin\Debug or bin\Release folder as appropriate for the type of build you did. You have to then copy the...

  • RE: Creating CLR assemblies with VS 2008

    The Login and user that you create from the certificate have nothing to do with the permissions that the CLR runs under. They exist solely to allow you to...

  • RE: Creating CLR assemblies with VS 2008

    It is really simple to do in Visual Studio, and the steps in 2008 are the same as 2005. When you create the database project, it will ask for...

  • RE: CLR Function Parameter Passing Issue

    The problem is that you have @phone declared as a char(20), which means it is going to have trailing spaces for a phone number. Either explicitly cast/convert it to...

  • RE: Can't debug CLR locally

    Hmm, I have to go play with your code now Jeff. I am not surprised that you once again replaced a loop with a Tally/Numbers table. I...

  • RE: Can't debug CLR locally

    That is correct, and you can easily modify the code to accept another input and return a scalar value back for a specific part only.

  • RE: Can't debug CLR locally

    You can do this with TSQL very easily with a split function. You can find one on the following link:

    http://code.msdn.microsoft.com/SQLExamples/Wiki/View.aspx?title=StringArrayInput&referringTitle=Home

    declare @namestring varchar(1000), @thirdvalue varchar(1000)

    set @namestring = 'Smith, John'

    SELECT @thirdvalue...

  • RE: How to get sql server installation folder?

    For this particular question, here is the example code.

    DECLARE @InstanceName varchar(100),

    @InstanceLocation varchar(100),

    @InstancePath varchar(100)

    SELECT @InstanceName = convert(varchar, ServerProperty('InstanceName'))

    EXEC master..xp_regread @rootkey='HKEY_LOCAL_MACHINE',

    @key='Software\Microsoft\Microsoft SQL Server\Instance Names\SQL',

    @value_name=@InstanceName,

    ...

Viewing 15 posts - 886 through 900 (of 964 total)