Click here to Skip to main content
15,878,814 members
Home / Discussions / Database
   

Database

 
Questionconnection string Pin
nelsonpaixao13-Jul-08 15:06
nelsonpaixao13-Jul-08 15:06 
AnswerRe: connection string Pin
Vimalsoft(Pty) Ltd13-Jul-08 15:48
professionalVimalsoft(Pty) Ltd13-Jul-08 15:48 
AnswerRe: connection string Pin
Ashfield13-Jul-08 21:01
Ashfield13-Jul-08 21:01 
GeneralRe: connection string Pin
nelsonpaixao14-Jul-08 13:11
nelsonpaixao14-Jul-08 13:11 
Questionhelp me to write procedure Pin
amistry_petlad13-Jul-08 7:40
amistry_petlad13-Jul-08 7:40 
AnswerRe: help me to write procedure Pin
nelsonpaixao13-Jul-08 13:35
nelsonpaixao13-Jul-08 13:35 
AnswerRe: help me to write procedure Pin
amistry_petlad13-Jul-08 13:41
amistry_petlad13-Jul-08 13:41 
AnswerRe: help me to write procedure Pin
nelsonpaixao13-Jul-08 14:37
nelsonpaixao13-Jul-08 14:37 
check the store procedures folder if it is already there!
use alter procedure to change it.

i usualy set the database on which i write on sql server up-left corner combobox. i don´t not use code but you can do that, do you need to code that?

create procedures like this (with inner join)
--------------sp-----------



create procedure vendas_criadas

@data_ini as smalldatetime,
@data_fim as smalldatetime

as


begin

select ve.id_venda as 'ID Venda',al.nome as 'Album',cl.primeiro_nome+' '+cl.ultimo_nome as 'Cliente',ut1.primeiro_nome+' '+ut1.ultimo_nome as 'Criador',ve.id_utilizador_criador_data as 'Data Criação'
from dbo.vendas as ve
inner join dbo.albuns as al on ve.id_album = al.id_album
inner join dbo.clientes as cl on ve.id_cliente = cl.id_cliente
inner join dbo.SPY_utilizadores as ut1 on ve.id_utilizador_criador = ut1.id_utilizador
where ve.data_registo between @data_ini and @data_fim

end

go

-------------execute-------------------

exec vendas_criadas
@data_ini = '1/1/2007',
@data_fim = '1/1/2008'
GeneralRe: help me to write procedure Pin
amistry_petlad13-Jul-08 14:47
amistry_petlad13-Jul-08 14:47 
AnswerRe: help me to write procedure Pin
leoinfo13-Jul-08 17:21
leoinfo13-Jul-08 17:21 
GeneralRe: help me to write procedure Pin
amistry_petlad13-Jul-08 17:57
amistry_petlad13-Jul-08 17:57 
GeneralRe: help me to write procedure Pin
Paul Conrad13-Jul-08 18:06
professionalPaul Conrad13-Jul-08 18:06 
GeneralRe: help me to write procedure Pin
amistry_petlad13-Jul-08 18:12
amistry_petlad13-Jul-08 18:12 
GeneralRe: help me to write procedure Pin
Paul Conrad13-Jul-08 18:16
professionalPaul Conrad13-Jul-08 18:16 
GeneralRe: help me to write procedure Pin
nelsonpaixao13-Jul-08 15:12
nelsonpaixao13-Jul-08 15:12 
GeneralRe: help me to write procedure Pin
amistry_petlad13-Jul-08 17:58
amistry_petlad13-Jul-08 17:58 
Questiondecimal not show zero [modified] Pin
tai-fun12-Jul-08 3:38
tai-fun12-Jul-08 3:38 
AnswerRe: decimal not show zero Pin
leoinfo12-Jul-08 7:07
leoinfo12-Jul-08 7:07 
Questionrow to column in sql Pin
ravindra_ee24811-Jul-08 19:58
ravindra_ee24811-Jul-08 19:58 
AnswerRe: row to column in sql Pin
Vimalsoft(Pty) Ltd13-Jul-08 15:55
professionalVimalsoft(Pty) Ltd13-Jul-08 15:55 
QuestionMail Triggering in SQL_Server Problem Pin
sabaMCA11-Jul-08 13:43
sabaMCA11-Jul-08 13:43 
AnswerRe: Mail Triggering in SQL_Server Problem Pin
Vimalsoft(Pty) Ltd12-Jul-08 11:11
professionalVimalsoft(Pty) Ltd12-Jul-08 11:11 
QuestionMail Triggering in SQL_Server Problem Pin
sabaMCA11-Jul-08 13:42
sabaMCA11-Jul-08 13:42 
QuestionHow to store stored proc results to a temp table Pin
DotNetXenon11-Jul-08 10:52
DotNetXenon11-Jul-08 10:52 
AnswerRe: How to store stored proc results to a temp table Pin
Vimalsoft(Pty) Ltd12-Jul-08 11:17
professionalVimalsoft(Pty) Ltd12-Jul-08 11:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.