Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: tempo1
  • Order by date
  1. tempo1

    sql server 2000, executing dynamic sql within a function

    Hi, This is before i read the link you sent SQLSister and before i tested the code you sent me Denis. I dislike the use of Dynamic SQL in my code but i always do it when there is a parameter involove in my query. I gave a glimpse at your code Denis and maybe i can use it instead. In that case...
  2. tempo1

    sql server 2000, executing dynamic sql within a function

    I made a mistake. This is "Statusecond" not "myFunction" sorry.
  3. tempo1

    sql server 2000, executing dynamic sql within a function

    Hi Denis I'd like to build a table, based on another table. My table's columns should display months (24 months for 2006-7). Ther are 4 rows for various states of a customer. I'd like for each value to insert: INSERT INTO myTable (row-col) SELECT myFunction(status,date) which is: /*EXEC...
  4. tempo1

    sql server 2000, executing dynamic sql within a function

    Hi everyone, I have a procedure within whice i execute a function as follows:SELECT 'bbb', DBO.statusecond ('%aaa%', '20070801') COMMIT and a function that runs dynamic sqlexec(@dynamic). When it comes to running that dynamic sql i get the following error message: . Why is that ? Must i...
  5. tempo1

    sql server 2000 dynamic sql, concatenating with int param

    Thanks a lot Borislav ! Glad you're here again to help.
  6. tempo1

    sql server 2000 dynamic sql, concatenating with int param

    Hi everyone, I try to form a dynamic-sql command where an "int" param is involved and i dont know how to do it. My code is: /*EXEC statusecond 'aaa', '20070801'*/ ALTER PROCEDURE statusecond @stat_param VARCHAR(50), @date_param SMALLDATETIME AS BEGIN TRANSACTION DECLARE @year_stat INT SET...
  7. tempo1

    beginner's simple question-select image source

    Thanks a lot Chris. Thank you Greg for the links.
  8. tempo1

    word-page numbers, new page, contents

    Hi 25061959 Thanks for trying to help. I finally found the source of my problem and it lays in the sort of "layout". Somehow, for a reason i dont know, the: view became "web layout". When it is on "normal" or "print layout" everything works fine. When it is on "Web layout" all i described happens.
  9. tempo1

    beginner's simple question-select image source

    Hi everyone, I want to load an image. At the "select image source" the "relative to" box, i'm required to choose either"document" or "site root" and i dont understand the implication of each selection. Can anyone explain me that ? Thanks
  10. tempo1

    word-page numbers, new page, contents

    Hi everyone, I'm accustomed to add page numbers to my "Word" documents. I tried to add "page numbers" from "Insert" menu item + "page number" but the "page number" menu item is dimmed and i cant do that. I use to make a "new page entry" pressing "shift+enter" keys but it is not working. I have a...
  11. tempo1

    sql server 2000, how much a table weighs ?

    Hi everyone In order to free disk space i need to identify tables and databases on the disk. Can i know a table's size (in bytes, not rows !) and database's size through system files in the SQL SERVER ? Any other resource to learn about my databases size ? Can anyone tell me what is the...
  12. tempo1

    sql server 2000 i'm looking for a function that returns

    a number showing the position of a certain character. Hi everyone, In my select query i want to display the position of the character '-'. My query goes like: select position(phone,'-') to show where the '-' of each phone number i situated. can anyone tell me what i should replace with ? Thanks...
  13. tempo1

    SQL SERVER 2000 adding a new user

    Hi everyone, My question is as simple as that: I want to add a new user for a particular database. That user should be working freely on that particular database (createing db, editing tables, removing tables) but he shouldn't have access to any other database and shouldn't have maste's...
  14. tempo1

    sql server2000, i need help with "xp_sendmail"

    Hi klewis 10367, Thanks, I ran the code as you suggested CREATE TABLE ##texttab (c1 text) INSERT ##texttab values ('Put your long message here.') DECLARE @cmd varchar(56) DECLARE @recipients varchar(20) SET @cmd = 'SELECT c1 FROM ##texttab' EXEC master.dbo.xp_sendmail @recipients='robertk'...
  15. tempo1

    sql server2000, i need help with "xp_sendmail"

    Hi everyone, i run the following code (xp_sendmail)CREATE TABLE ##texttab (c1 text) INSERT ##texttab values ('Put your long message here.') DECLARE @cmd varchar(56) SET @cmd = 'SELECT c1 FROM ##texttab' EXEC master.dbo.xp_sendmail 'robertk', @query = @cmd, @no_header= 'TRUE' DROP TABLE...
  16. tempo1

    sql server 2000 sending mails

    Hi Glasgow, No i didnt try in the first place but having tried after reading your last notification i see "new horizons". I'll have to spend some time learning that matter but at this moment i'm very gratefull to you.

Part and Inventory Search

Back
Top