由买买提看人间百态

topics

全部话题 - 话题: dbo
首页 上页 1 2 3 4 5 下页 末页 (共5页)
e*****u
发帖数: 567
1
来自主题: Stock版 - 石油45对应的dbo是什么价格
有大拿分析一下吗?$11.5?我是猜的。
m*****y
发帖数: 3981
2
来自主题: Stock版 - WTI纸交,仅供娱乐,勿跟
Saudi Arabia reduces prices on oil sales
Oct 4 2015, 15:22 ET | By: Clark Schultz, SA News Editor

Saudi Arabia cut prices on oil sales over the weekend as it plays catch-up
with OPEC and other producers in the region.
State-run Saudi Aramco reduced prices significantly on oil sent to Asia and
the U.S.
The strategy from Dhahran is to keep producing oil at high levels in
anticipation of improved demand at lower price points.
Crude ETFs: USO, OIL, UCO, UWTI, SCO, BNO, DBO, DWTI, DTO, USL, DNO,... 阅读全帖
M***n
发帖数: 5815
3
发信人: laoxiang2011 (laoxiang), 信区: Stock
标 题: eft dbo 是完全track石油价格且没有leverage么
发信站: BBS 未名空间站 (Fri Aug 28 10:28:31 2015, 美东)
求大牛解答!但图上看着不像啊, 怎么回事?
M***n
发帖数: 5815
4
DBO的说明写的是
The Fund seeks to track the Deutsche Bank Liquid Commodity Index-Optimum
Yield Crude Oil Excess Return which is intended to reflect the changes in
market value of crude oil.
就是说它跟踪的是在荷兰银行的证券交易所交易的原油,不是WTI
M***n
发帖数: 5815
5
发信人: laoxiang2011 (laoxiang), 信区: Stock
标 题: 大牛解答:dbo和uso有啥区别?
发信站: BBS 未名空间站 (Fri Aug 28 10:40:23 2015, 美东)
多谢!
M***n
发帖数: 5815
6
老马引用的文章并不全面。在我回答GC2014的帖子时,已经考证过相关法律规定了。
小小人应该在加州。加州的法律此事有详细规定:
http://www.dbo.ca.gov/Licensees/Broker-Dealer_and_SEC_Investmen
具体条款是:
A supervised person is not an investment adviser representative if the
supervised person does not on a regular basis solicit, meet with, or
otherwise communicate with clients of the investment adviser or provides
only impersonal investment advice. (This is not a complete definition. See
SEC Rule 203A-3 for the complete definition).
也就是说,如果没有regular的和买advise/pic... 阅读全帖
p****e
发帖数: 38
7
来自主题: Stock版 - 怎样规避USO的移仓磨损?
想长期投资原油,买什么ETF好
USO的移仓成本太大了,USL好一点吗?DBO怎么样?
不看好美股所以也不想买油股相关的ETF
p****e
发帖数: 38
8
来自主题: Stock版 - 怎样规避USO的移仓磨损?
看了下USO和DBO半斤八两,USL好一些
有谁会把原油当月连续的曲线一起画出来吗?
F*****d
发帖数: 2848
9
来自主题: Stock版 - 有没有没损耗的油的指数
没看明白,介绍说DBO是track oil的ETF。那这个tick到2017/03会有啥特定动作吗。
p*******e
发帖数: 125
10
来自主题: Stock版 - 有没有没损耗的油的指数
这个应该会改善的,交易的人多了自然就会上去,现在交易量在慢慢上去。当市场越来
越多的人认为这个石油复苏是长期的过程,远期合同的交易量会上去。买uso实际上是
赌石油一个月内就复苏,contract roll over时的contango不知道,你的成本是不定的
。你买dbo,你知道你一年以内的成本
X****i
发帖数: 1877
11
$【2018年7月25日404个股票的短期谷底高峰预测】$
【喜欢就顶,顶到99楼,就再次发最新并且更好更多机会的预测。】
对比预测,如果股价越极端,散户获暴利的机会和风险其实反而越佳。
花街的捣蛋,挤空或砸价,其实是制造极端价供精明的散户收割暴利。
花街这么做绝非善意,而是要吓唬散户在其人为的极端价割肉出局。
花街有用之不尽的代理基金和资金充炮灰,可以任性的挤高峰砸谷底。
花街有别人的代理钱来任性,用大量炮灰钱可以买出涨价,砸出跌价。
股票最不定因素,就是花街每天对散户的捣蛋,尤其挤高峰和砸谷底。
以下是为蝌蚪们提供的最基本,炒股绝对须要遵守,的注意事项:
1. 预备大量(>=50%)现金,准备用来收割花街人为制造的捣蛋极端价。
2. 只用50%的现金做买卖的预算,分散风险在10到20个不同的股票里。
3. 一旦价格接近预测的谷底或高峰,就开始用短期的趋势线跟踪。
4. 如果价格比预测极端,意味花街可能在捣蛋,即挤空或砸价。
5. 既然花街意在制造极端价,那就耐心的避其锐气,袭其惰归。
6. 所以只要短期趋势线没破,就不下单,不加码,不管价位多极端。
7. 这样才能充分利用花街制造的... 阅读全帖
b****g
发帖数: 7311
12
来自主题: Pingpong版 - 伙计战DBing
DBING? DBo 吧
H*******g
发帖数: 6997
13
来自主题: Piebridge版 - SQL
SELECT DISTINCT (girlID)
FROM dbo.GirlTable
WHERR girlName =''
m**t
发帖数: 660
14
来自主题: Piebridge版 - SQL
这个是独孤求败的意思吗?
Debug mode 1:
SELECT DISTINCT (girlID)
FROM dbo.GirlTable
WHERR Upper(girlName) ='HUIZHOU';
LOL, 你先陪大妈聊着,回头找人帮你把SQL改改。
a*****9
发帖数: 805
15
来自主题: SCU版 - 会写code的同学帮帮忙
solved?? I have a better one, I used it sometime ago..
Assuming you are using MSSQL 2008
declare @SQL varchar(max)='select * from [content] where '
select @SQL=@SQL+LEFT(c,LEN(c)-3) from (
SELECT distinct top 1 (
SELECT '['+name+'] is null OR ' from sys.columns WHERE object_id =
OBJECT_ID('dbo.content')
FOR XML PATH('')
) AS c
FROM sys.columns
) t
exec( @SQL)
j****s
发帖数: 271
16
来自主题: Database版 - certificate? Help please.
DBO(Database Operator)
But I think it's not so useful and quite costly.
st
发帖数: 1685
17
plz help:
line.Format("{call %s.dbo.p_getVDKFilters (%d, %s, null, ?, ?)}",
m_sDatabase, m_instance, from_date);
the call is like
{call p_getVDKFilters (-1,null,null,@errcode,@errmsg)}
I can get output result from query analyzer, the similar
java program works... but this one does...
very simliar call to another store procedure can work...
the problem is one of the "null" is a datetime type for output parameter.
the other store procedure has nothing like this...
it outputed once, after a minor c
m*****g
发帖数: 138
18
来自主题: Database版 - 问关于group by的问题
forget it, I just found you can use
SELECT Customer, SUM(Price * Quantity) AS Prices
FROM dbo.Table1
GROUP BY Customer
m******y
发帖数: 588
19
When I'm running EXEC master..xp_cmdshell 'osql .. test.sql ..', I'm not
able to use @@ERROR to catch any error happening when executing test.sql
using osql utility. Is there anyway to error handling that? Thanks.
m******y
发帖数: 588
20
Right now whatI did is to write the osql result into a log file and then use
EXEC sp_readerrorlog to find some keyword 'error' ,'invalid object' etc to
handle the errors.
Does anyone know a better way to do this?
Thanks again.
s**i
发帖数: 381
21
来自主题: Database版 - #在SQL里啥子意思
几乎完全新手
拿到一个stored procedure like this:
CREATE PROCEDURE [dbo].[nextUrl]
@asmx varchar(80)
AS
begin transaction
create table #thisUrl ([System Name] varchar(80) not null,url
varchar(4096) not null,asmx varchar(80) not null,invocations bigint not
null)
这里的#thisUrl是啥意思?
括号里那一大串又是什么呢?
thanks
a*******t
发帖数: 891
22
OK, here is a full working example:
CREATE TABLE [dbo].[testing](
[OrderID] [varchar](50) NULL,
[CustName] [varchar](50) NULL
)
and then insert some sample data into the table
123, John
567, Joe
123, Mary
123, Peter
and then here is the query
select
OrderID
, max(case rowno when 0 then CustName end) +
coalesce(max(case rowno when 1 then ', ' + CustName end), '') +
coalesce(max(case rowno when 2 then ', ' + CustName end), '') +
coalesce(max(case rowno when 3 then ', ' +
n********6
发帖数: 1511
23
来自主题: Database版 - error file或者exception file
前两周刚做完bcp,所以比较熟悉。
例子:table varchar(9)
1。如果用format,一旦有不符合format,就报错。
2。如果不用format,自己写validation,要注意table里面的varchar长度限制。
3。超过长度限制的,bcp报错,但是shell不传到数据库。
4。bcp会truncate(忽略)该条记录。读取下一条记录。注意:假如record是10位,不会
读取前9位。
5。bcp会计数上述4的错误次数。默认允许最大错误次数是10。可以修改默认值。
6。达到最大默认值,shell命令报错,job agent知道。
7。我当时没用format,用,EXEC msdb.dbo.sp_send_dbmail,把validation的信息发信
给business group。DBA不需要管数据是否合理。只要job run就可以了。
8。send_dbmail可以送2个附件。一个来自于file directory。另一个来自于query。

file?
p********a
发帖数: 5352
24
来自主题: Database版 - SQL server2005: Why can't I see the data?
Msg 229, Level 14, State 5, Line 1
The SELECT permission was denied on the object 'CA_Provider_24Mos', database
'BSC_BI', schema 'dbo'.
I guess I don't even have select permission.
j*****n
发帖数: 1781
25
来自主题: Database版 - SQL server2005: Why can't I see the data?
同不懂...
试了一下,得到如下error message...
[Microsoft][ODBC SQL Server Driver][SQL Server]SELECT permission denied on
object 'AWBuildVersion', database 'AdventureWorks', schema 'dbo'.".
n*******r
发帖数: 425
26
来自主题: Database版 - DBA职业要求
是oracle 11gr2 upgrade seminar? 我也去了呀。
反正我没见到女dba做得特别优秀的,一般的dbo有一些吧
gy
发帖数: 620
27
来自主题: Database版 - 咋查Oracle job的status呀?
这个也试过了, 不是我要的那种.
在MS SQL里, 我可以直接query msdb.dbo.sysjobs, 把server上的job都提出来看
status. 在Oracle上怎么就没这么个table or view的呢??
i****a
发帖数: 36252
28
来自主题: Database版 - SQL 200x Decrypt credential info?
For example,
in ReportServer.dbo.DataSource
the ConnectionString, UserName etc columns are encrypted. Is there a way to
decrypt those info?
c*****y
发帖数: 75
29
来自主题: Database版 - T-SQL Row Concatenate with a Twist??
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[Play_test](
[ContactID] [varchar](50) NULL,
[type] [varchar](50) NULL,
[Value] [varchar](50) NULL
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
m****e
发帖数: 1197
30
来自主题: Database版 - 简单SQL语法一问
WHERE (dbo.tblFact.Period_ID in (26, 27, 28.....50))
有没有简单的办法表达26-50,就不用把26到50这些数字都hard code。
R*********r
发帖数: 225
31
来自主题: Database版 - temp table problem
IF (2>1)
SELECT 1 as col1 INTO #test
ELSE
BEGIN
IF OBJECT_ID(N'tempdb.dbo.#test') IS NOT NULL DROP TABLE #test
SELECT 2 as col1 INTO #test
END
上面这个语句报错:
Msg 2714, Level 16, State 1, Line 7
There is already an object named '#test' in the database.
把#test换成permenant table就没问题,请问这个怎么解决?
a9
发帖数: 21638
32
来自主题: Database版 - temp table problem
if exists (select * from tempdb.dbo.sysobjects where id = object_id(N'tempdb
..#test') and type='U')
drop table #test
select 1 as col1 into #test
S*****0
发帖数: 538
33
来自主题: Database版 - temp table problem
这个没问题,刚试过。 估计,是#test table 需要先定义,不然,SQL Server
paser 会遇到SELECT ...INTO #test 就定义一次#test, 导致错误 。
IF OBJECT_ID(N'tempdb.dbo.#test') IS NOT NULL DROP TABLE #test
CREATE TABLE #test(col1 int)
IF (2>1)
INSERT INTO #test(col1)
SELECT 1 as col1
ELSE
BEGIN
INSERT INTO #test(col1)
SELECT 2 as col1
END
n*****y
发帖数: 36
34
来自主题: Database版 - 今夭的面试题
我再添点砖:
如果import data之后又rebuild index,那么不用update stat相关index,
首先是重复劳动,如果不带fullscan的update stat得到的statistics
还不如rebuild index时得到的准确。
虽然SQL Server会根据import数据量(20%)自动update stat,
但因为data import的任务通常是在maintenance window进行,
完成importhou 我习惯用cursor statement来更新其他的statistics
下面是其中的部分语句(更新指定表12小时内未更新的statistics)
请zenny和各位指正
SELECT
'UPDATE STATISTICS [' + sc.name + '].[' + t.name +'] [' + st.name +']
WITH FULLSCAN'
FROM
sys.stats st
JOIN sys.tables t ON t.object_id = st.object_id
JOIN sys... 阅读全帖
o****e
发帖数: 916
35
来自主题: Database版 - SQL server stored procedure 求助
有一个很奇怪的数据库问题,还望高手相助。
数据库运行在web 服务器上,有一个stored procedure用来在user table生成新条目。
user table结构也很简单,主要的两个field是id和name,ID是一个identity field,
数据库自动生成的int。name是字符串,unique
stored procedure 如下:
=====================================
ALTER PROCEDURE [dbo].[AddUser]
@Name nvarchar(50),
@ID int out
AS
BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SET NOCOUNT ON;
-- Insert statements for procedure here
insert into Customer... 阅读全帖
u*********e
发帖数: 9616
36
that was what I did. I created a table variable and just inserted values.
Later I replaced the table variable with temp table but no luck.
Below is my store procedure.
ALTER PROCEDURE [dbo].[SP_REPORT_GET_STATUS_DATES]
@Statement_Year SMALLINT,
@Statement_Month TINYINT

AS
BEGIN
BEGIN TRY
Declare @Curr_Code nvarchar(10)
Declare @Group_Code nvarchar(10)
declare @Group_member_Code nvarchar(10)
declare @Date_Submitted smalldatetime
declare @SuppDate... 阅读全帖
u*********e
发帖数: 9616
37
gejkl,
Thank you very much for helping me answering my question. I was doing
research myself and figuring out the issue. You are right. I rewrite the
query to get rid of cursor and use PATH XML instead.
One interesting thing I observed is that after I updated my sp and run the
report, it gave out an error msg:
"An error occurred during local report processing.Exception has been thrown
by the target of an invocation. String was not recognized as a valid
DateTime.Couldn't store <> in Stmt_Date_Cre... 阅读全帖
u*********e
发帖数: 9616
38
Thanks for the feedback.
I cleaned up the variables and use smalldatetime instead of nvarchar for the
comparison.
ALTER PROCEDURE [dbo].[SP_REPORT_GET_STATUS_DATES]
@Statement_Year SMALLINT,
@Statement_Month TINYINT

AS
BEGIN
declare @Results table (Group_Code nvarchar(10) not null,
Group_Member_Code nvarchar(10) not null,
Stmt_Date_Created nvarchar(10) null,
Stmt_Date_Updated nvarch... 阅读全帖
g***l
发帖数: 18555
39
我的SSIS PACKAGE里VENDOR_ID是INT,PASS进去说是TYPE MISMATCH,好像dtsExecCmd只
能接受STRING
create PROCEDURE [dbo].[TestRunMySSISPkg]
@ssisPkgFilePath varchar(500),
@vendor_id int --varchar(5)
AS
begin
DECLARE
@dtsExecCmd varchar(4000)
SET @dtsExecCmd = 'dtexec /F "' + ltrim(rtrim(@ssisPkgFilePath)) + '"'
SET @dtsExecCmd = @dtsExecCmd + ' /SET "\package.Variables[User::vendor_id].
Properties[Value]";""' + @vendor_id
u***t
发帖数: 3986
40
来自主题: Database版 - query questions
SQL SERVER MANAGEMENT STUDIO 2008
select ROW_NUMBER() OVER (ORDER BY ShopperID) AS 'RowNumber', ShopperID,
ShipEmail from Profiles.dbo.address WHERE RowNumber BETWEEN 2 AND 5
Msg 195, Level 15, State 10, Line 2
'ROW_NUMBER' is not a recognized function name.
g***l
发帖数: 18555
41
来自主题: Database版 - best practices for sql developer
随便总结了一下,不包括ETL,抛砖引玉了,
1. never use * in query, only use specific columns and rows you need, never
use extra
2. table uses dbo prefix, selection uses with (nolock)
3. repeated code section can be replace by UDF or stored procedure
4. join is always on the key. if join is not the key, you need to be very
careful
5. layout flow chart for complicated stored procedure before coding
6. CTE is a good choice to replace subquery, table variable and temp table
7. all the work should be done on the temp t... 阅读全帖
i****a
发帖数: 36252
42
you need the last full backup.
look at your msdb.dbo.backupset table, check the LSN (log sequence number).
you need to have all the backup files that covers the LSN from the full
backup to the lastest diff backup.
r***i
发帖数: 112
43
来自主题: Database版 - SQL Server OpenQuery 问题
那位高手知道,有两个SQL Server,下面哪个Performance好点:
1. update OpenQuery(LinkedServerName, 'select name from customer
where age = 10 and sex = ''Male''')
set name = 'Chang'
2. update LinkedServerName.DBName.dbo.customer
set name = 'Chang'
where age = 10 and sex = 'Male'
多谢
w********9
发帖数: 461
44
我抄了个function,就是计算n天以后的working day。现在有个holiday table tbl_
holiday,要把holiday排除在外,怎么加进去?
谢谢!
ALTER FUNCTION [dbo].[find_WorkingDayADD](
@date datetime, --start day
@workday int --days to be added
)RETURNS datetime


AS
BEGIN
DECLARE @bz int

--不是整周
SELECT @bz=CASE WHEN @workday<0 THEN -1 ELSE 1 END
,@date=DATEADD(Week,@workday/5,@date)
,@workday=@workday%5
-- 整周
WHILE @workday<>0
SELECT @date=DATEADD(Day,@bz,@date),
@workday=CASE WHEN (... 阅读全帖
g***l
发帖数: 18555
45
来自主题: Database版 - SQL问题(有包子)
首先要有一个FUNCTION判断是不是BUSINESS DATE,别忘了HOLIDAY
create function [dbo].[udf_is_valid_business_date]
(
@date datetime
)
returns int
as
begin
declare
@is_holiday int,
@is_valid_business_date int
select @is_holiday =
case
-- memorial day (last mon of may)
when datepart(yy,@date) = 2009 and datepart(mm,@date) = 5 and
datepart(dd,@date) = 25 then 1
when datepart(yy,@date) = 2010 and datepart(mm,@date) = 5 and
datepart(dd,@... 阅读全帖
g***l
发帖数: 18555
46
来自主题: Database版 - SQL问题(有包子)
declare
@next_business_date datetime,
@is_business_date int
select @next_business_date = convert(datetime, convert(varchar,getdate(),101))
while (@is_business_date = 0)
begin
select @is_business_date = dbo.udf_is_valid_business_date(@next_business_date)
if (@is_business_date =0)
begin
select @next_business_date = @next_business_date + 1
end
end
select @next_business_date
i****i
发帖数: 18
47
来自主题: Database版 - How to write the query
CON-194654 A. Bertsch 2/5/2011 25 75
CON-194654 A. Bertsch 12/27/2010 25 75
CON-194654 A. Bertsch 10/27/2010 25 75
Actually, the result displays three duplicated lines. I only want one line
with the summary information. I tried to use Group By and Having to remove
duplicates, but always encounter the errors.
Thank you for all your inputs and helps.
My code:
SELECT [Record ID]
,[Title]
,[First Name]
,[Last Name]
,[Suffix]
,... 阅读全帖
j*****n
发帖数: 1781
48
来自主题: Database版 - A weird error
A department was looking for my support for an error they received while
they were loading a set of data into a table.
The DB is SS2K5.
The error message shows "Violation of PRIMARY KEY constraint 'PK_index'.
Cannot insert duplicate key into object 'dbo.Table'".
Sounds straight forward? No...
I then load the set of data into a temp table and do the comparison, no
duplicates found!
Well, this is the first time I met this problem and a little bit later I
had
my best guess to give a solution, and i... 阅读全帖
gy
发帖数: 620
49
来自主题: Database版 - 请教sql server的dbo prefix
Can you give an example for "有时候必须不加"?
g***l
发帖数: 18555
50
来自主题: Database版 - 请教sql server的dbo prefix
对的,万一有个PROGRAMMER起了个一样的TABLE,就会出错
首页 上页 1 2 3 4 5 下页 末页 (共5页)