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...
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...
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
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...
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...
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...
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...
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...
Hi everyone,
My table contains 2 columns:1. mame 2. email address.
Is there a way to write a script that will mail a message to the whole list without me sending the message to each mail address separately?
Thanks
Hi everyone,
I added a "FORM" in my html page to enable the user send me a file via mail. The code is:
<html>
<head>
<title>
send_me_a_file
</title>
</head>
<body>
<form action="mailto:mymail@mail.com?subject="myfile" enctype="text/plain"
name="regiser" method="post">...
Hi everyone,
I have a table (sql server 2000) that contains 20000 email addresses.
I need to send a message to each mail address and i wouldnt want to do it separately for each address. Is there a way to do it automatically through the outlook express ? sql server ? "excel?
Thanks
hi everyone,
I'm facing all kind of difficulties creating my SQL reports into Excel sheets. Is it worthwhile changing into "Crystal reports" ? The fact is, I have no idea what "Crystal reports" is. Is it a package i have to buy ? Is it part of the SQL SERVER 2000? Is it just a code ? Is there a...
hi everyone,
i created a table with a varchar column and when i tried to insert value into it as follows:
declare @xxx table
(
aaa varchar
)
INSERT INTO @xxx
(
aaa
)
SELECT
cast(333 as varchar)
i recieved the following error message:
can anyone tell me why ?
thanks.
Hi everyone,
My table contains a 300 width column but i dont want to show that width in my query so i'm looking for
a function to "cut" empty spaces from that column. For example, if my column width was of 10 characters
and contained something like "a", i'd like it to be "a" and not "...
Hi everyone,
I'd like to display sizes of a table using a query such as:
SELECT
SIZEOF(col1),
SIZEOF(col2)
FROM
mytable can anyone tell me the keyword i should write instead of "sizeof" ?
Thanks
hi everyone,
i add a form to my page but i dont want it to have a flat white appearance. i'd like to add to the <form> label a backgroun picture something like:<code>
<form bachground="mypic.jpg">
thanks.
Hi everyone,
I want to transfer messages, time table and lists from my
outlook to another computer. How do i copy all that ?
Where do i find (which folder) those files on the disk?
Thanks !
Hi everyone
i write a dynamic sql query in which a parameter is involoved:/*drop table table1*/
DECLARE @param1 VARCHAR(10)
SET @param1='aa'
DECLARE @dynamic VARCHAR(1000)
SET @dynamic=
'
SELECT '
+ '@param1' + ' "param"
INTO
table1
'
print(@dynamic)
exec(@dynamic)
go and i dont know how to get...
Hi everyone,
I'd like to create a page where there are 2 tables. The lower table should be beneath the upper table. My code:
<html>
<head>
<title>
his family
</title>
</head>
<body background="../simpsons/1_1.jpg">
<p>
<table align="left" width="45%" height="100"...
Hi everyone
The code i wrote is:
DECLARE @dynamic VARCHAR(1000)
SET @dynamic=
'
SELECT
accountno "accountno"
FROM
fiftyplus..contact1
'
print @dynamic
exec @dynamic not working ! I get an error message saying:
And i cant figure out why ! Can anyone tell me whats wrong
with it ?
Thanks
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.