PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Hébergement serveur > ms.sqlserver.server > 2 Qs
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
2 Qs

Réponse
 
LinkBack Outils de la discussion
Vieux 16/06/2008, 14h43   #1
Riyaz Mansoor
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 2 Qs


MS SQL Server 2005 Express / Management Studio Express

Pls me with the 2, possibly simple, problems.

************

I've got the following table in a test sql script. Complains that
'Base.PK_T' cannot be found. Have checked that the correct database is
referred. I know the the script works because when I change the types
to the SQL-Server types (PK_T -> int, Char1_t -> char(1)) the script
works fine. So does this mean that User Defined Types *cannot* be used
in temp tables? What could i be doing wrong?

create table #setting (
ID Base.PK_T,
SType Base.Char1_T,
SKey Base.SKey_T,
SValue Base.SValue_T
)
insert into #setting execute base.settingsearch 's'
if @@rowcount <> 1 print 'Error: SettingSearch: 1'

************

I have setup Database Mail using SPs (GUI not available in Express).
Try to send a test mail and gets the msg 'Mail Queued'. However, it
stays unsent. I have sent email from my mail client with the same
settings (smtp server)

I took a look at msdb.dbo.sysmail_event_log.
EventType: information, Description: mail queued
EventType: error, Description: Activation Failure

**************
  Réponse avec citation
Vieux 16/06/2008, 16h27   #2
Tibor Karaszi
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: 2 Qs

> So does this mean that User Defined Types *cannot* be used
> in temp tables? What could i be doing wrong?


The UDT need to be available in the tempdb database (since this is where temp tables lives).
Typically, you create the UDTs in the model database as well, since tempdb is re-create on each
startup - based on model.



> I took a look at msdb.dbo.sysmail_event_log.
> EventType: information, Description: mail queued
> EventType: error, Description: Activation Failure



I don't know, but you might want to post this to the Service Broker group, since this is what DB
Mail is using internally and the error seem to be SB related.

--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi


"Riyaz Mansoor" <riyaz.mansoor@gmail.com> wrote in message
news:bf1f0cb5-d556-41d3-a7ff-792a32676379@w7g2000hsa.googlegroups.com...
>
> MS SQL Server 2005 Express / Management Studio Express
>
> Pls me with the 2, possibly simple, problems.
>
> ************
>
> I've got the following table in a test sql script. Complains that
> 'Base.PK_T' cannot be found. Have checked that the correct database is
> referred. I know the the script works because when I change the types
> to the SQL-Server types (PK_T -> int, Char1_t -> char(1)) the script
> works fine. So does this mean that User Defined Types *cannot* be used
> in temp tables? What could i be doing wrong?
>
> create table #setting (
> ID Base.PK_T,
> SType Base.Char1_T,
> SKey Base.SKey_T,
> SValue Base.SValue_T
> )
> insert into #setting execute base.settingsearch 's'
> if @@rowcount <> 1 print 'Error: SettingSearch: 1'
>
> ************
>
> I have setup Database Mail using SPs (GUI not available in Express).
> Try to send a test mail and gets the msg 'Mail Queued'. However, it
> stays unsent. I have sent email from my mail client with the same
> settings (smtp server)
>
> I took a look at msdb.dbo.sysmail_event_log.
> EventType: information, Description: mail queued
> EventType: error, Description: Activation Failure
>
> **************



  Réponse avec citation
Vieux 21/06/2008, 14h44   #3
Riyaz Mansoor
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: 2 Qs


For Info. Though I did not get an answer in the service broker
newsgroup the answer seems to be that service broker is NOT supported
in MS SQL Server 2005 Express. Hence, mail just stays unsent. Hope
this s someone else.

http://www.microsoft.com/sql/prodinf...-features.mspx


On Jun 16, 7:27pm, "Tibor Karaszi"
<tibor_please.no.email_kara...@hotmail.nomail.co m> wrote:
> > I took a look at msdb.dbo.sysmail_event_log.
> > EventType: information, Description: mail queued
> > EventType: error, Description: Activation Failure

>
> I don't know, but you might want to post this to the Service Broker group, since this is what DB
> Mail is using internally and the error seem to be SB related.

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 04h15.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,10818 seconds with 11 queries