Forum Replies Created

Viewing 15 posts - 8,236 through 8,250 (of 13,460 total)

  • RE: How to select a row that has most recent date of updation !

    are you familiar with using the GROUP BY statement? i think a SQL combined with some of the functions that are allowed using group by (MIN(),MAX()AVG())

    would get you what...

  • RE: Calling Scalar Function within stored Procedure

    we'd really need the exact error you are getting...and also the exact code you are doing to really help. All i can offere is generalities.

    where is param1 and param2? are...

  • RE: select pattern from the column name

    it's working for me, but you had a lot of reserved words for your column names, so i quoted them, and see it's working that way.....:

    With MyQuickTable AS (

    SELECT 'MONTH_20101006_1_out.txt'...

  • RE: Send mail without use Mail Server

    ok just checking the basics here...at my job, for example, google mail is blocked by our firewall because it's a corporate time waster...utube/facebook etc are all blocked as well...could google...

  • RE: Send mail without use Mail Server

    here you go: visually, this is exactly how my gmail account is set up, and it works...the important piece is the port and mailserver address:

  • RE: Send mail without use Mail Server

    so are you not allowed to setup dbmail on the SQL server, or you just don't have a specific SMTP mail server that you know you can use?

    I've setup a...

  • RE: Taking schema tables into consideration ,I want to create views with readonly permission

    do you mean you want to create a role so that when users connect, the tables are read only?

    USE Whatever

    CREATE ROLE [ReallyReadOnly]

    --give reader writes to this...

  • RE: Returing Tables filled from a query inside a Function

    the short answer is because functions in SQL are different than functions in a programming language...they pretty much have to return data, and cannot change/update data.

    because dynamic SQL could potentially...

  • RE: need help about procedure

    also, this is just incorrect...maybe a copy paste error?

    @email is declared as a nvarchar(50), but you seem to be assigning it the results of a boolean...

  • RE: need help about procedure

    i copied and pasted your code into SSMS, and your syntax errors all seem to revolve around two issues: every CREATE PROC... statement must be in it's own batch...adding a...

  • RE: Upper/lower case text

    sc-w (1/4/2011)


    I nearly missed that post, i tried the following but it generates an error. Any thoughts?

    update dbo.wce_contact set firstname = dbo.ProperCase(firstname)

    Error:

    Msg 1014, Level 15, State 1, Line 1

    TOP clause...

  • RE: sp procedure error

    spelling error.

    select statement gets SubmitTime,

    but the update statement is using SubmittedTime

  • RE: Upper/lower case text

    sc-w (1/4/2011)


    Thanks for both the replies.

    I really like that function. How do i declare @OriginalText to be an actual field that alread exists?

    Thanks again.

    I should have added that to my...

  • RE: Upper/lower case text

    this is the ProperCase function I use; it's from a post by Jeff Moden, i believe, harvested long long ago.

    you can search for "ProperCase" or "InitCaps" here on SSC and...

  • RE: CLR to do a HTTPS Push to SMS Gateway

    why via the web interface of some provider? all the providers i know support email to sms, which is easier to do from SQL server; the problem is you have...

Viewing 15 posts - 8,236 through 8,250 (of 13,460 total)